Skip to content

Commit

Permalink
build: 修改为gradle构建工具
Browse files Browse the repository at this point in the history
  • Loading branch information
huanmeng-qwq committed Jul 16, 2024
1 parent 32043c7 commit 266e1e2
Show file tree
Hide file tree
Showing 14 changed files with 435 additions and 430 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/deploy.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
.gradle
!**/build/

### IntelliJ IDEA ###
.idea
Expand Down
13 changes: 13 additions & 0 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* This file was generated by the Gradle 'init' task.
*/

plugins {
// Support convention plugins written in Kotlin. Convention plugins are build scripts in 'src/main' that automatically become available as plugins in the main build.
`kotlin-dsl`
}

repositories {
// Use the plugin portal to apply community plugins in convention plugins.
gradlePluginPortal()
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* This file was generated by the Gradle 'init' task.
*/

plugins {
`java-library`
}

repositories {
mavenLocal()
maven {
url = uri("https://oss.sonatype.org/content/groups/public/")
}

maven {
url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
}

maven {
url = uri("https://repo1.maven.org/maven2/")
}

maven {
url = uri("https://repo.maven.apache.org/maven2/")
}
}

group = "com.huanmeng-qwq"
version = "2.2.2"
java.sourceCompatibility = JavaVersion.VERSION_1_8

java {
withSourcesJar()
}

tasks.withType<JavaCompile>() {
options.encoding = "UTF-8"
}

tasks.withType<Javadoc>() {
options.encoding = "UTF-8"
}
14 changes: 14 additions & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
plugins {
id("com.huanmeng-qwq.java-conventions")
}

dependencies {
api("net.kyori:adventure-api:4.14.0")
api("net.kyori:adventure-platform-bukkit:4.3.1")
api("net.kyori:adventure-text-serializer-legacy:4.14.0")
api("org.bstats:bstats-bukkit:3.0.2")
compileOnly("org.spigotmc:spigot-api:1.19.2-R0.1-SNAPSHOT")
compileOnly("org.jetbrains:annotations:24.1.0")
}

description = "Bukkit-Gui"
57 changes: 0 additions & 57 deletions core/pom.xml

This file was deleted.

Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 266e1e2

Please sign in to comment.