Skip to content

Commit 6f6bd40

Browse files
committed
feat: migrate to kotlin dsl
1 parent 8367e6d commit 6f6bd40

File tree

6 files changed

+47
-56
lines changed

6 files changed

+47
-56
lines changed

build.gradle

Lines changed: 0 additions & 53 deletions
This file was deleted.

build.gradle.kts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
plugins {
2+
java
3+
}
4+
5+
group = "net.azisaba.afnw"
6+
version = "1.4.1"
7+
8+
repositories {
9+
mavenCentral()
10+
maven {
11+
name = "papermc-repo"
12+
url = uri("https://papermc.io/repo/repository/maven-public/")
13+
}
14+
maven {
15+
name = "sonatype"
16+
url = uri("https://oss.sonatype.org/content/groups/public/")
17+
}
18+
maven {
19+
name = "essentialsx"
20+
url = uri("https://repo.essentialsx.net/releases/")
21+
}
22+
}
23+
24+
dependencies {
25+
compileOnly("io.papermc.paper:paper-api:1.17.1-R0.1-SNAPSHOT")
26+
compileOnly("net.essentialsx:EssentialsX:2.19.7")
27+
}
28+
29+
java.toolchain.languageVersion.set(JavaLanguageVersion.of(17))
30+
31+
tasks {
32+
compileJava {
33+
options.encoding = "UTF-8"
34+
}
35+
36+
processResources {
37+
duplicatesStrategy = DuplicatesStrategy.INCLUDE
38+
39+
from(sourceSets.main.get().resources.srcDirs) {
40+
filter(org.apache.tools.ant.filters.ReplaceTokens::class, mapOf("tokens" to mapOf("version" to project.version.toString())))
41+
filteringCharset = "UTF-8"
42+
}
43+
}
44+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

settings.gradle

Lines changed: 0 additions & 1 deletion
This file was deleted.

settings.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rootProject.name = "AfnwCore2"

src/main/resources/plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: AfnwCore2
2-
version: '${version}'
2+
version: @version@
33
main: net.azisaba.afnw.afnwcore2.AfnwCore2
44
api-version: 1.17
55
prefix: AfnwCore2

0 commit comments

Comments
 (0)