Use Gradle Kotlin DSL

This commit is contained in:
Glavo
2022-01-01 13:43:54 +08:00
committed by Yuhui Huang
parent 345598016a
commit 5df95ad0fa
12 changed files with 585 additions and 567 deletions

View File

@@ -1,27 +0,0 @@
plugins {
id 'java-library'
}
dependencies {
api group: 'com.google.code.gson', name: 'gson', version: '2.8.1'
api group: 'com.moandjiezana.toml', name: 'toml4j', version: '0.7.2'
api group: 'org.tukaani', name: 'xz', version: '1.8'
api(group: 'org.hildan.fxgson', name: 'fx-gson', version: '3.1.0') {
exclude group: 'org.jetbrains', module: 'annotations'
}
api group: 'org.jenkins-ci', name: 'constant-pool-scanner', version: '1.2'
api group: 'com.github.steveice10', name: 'opennbt', version: '1.1'
api group: 'com.nqzero', name: 'permit-reflect', version: '0.3'
api group: 'org.nanohttpd', name: 'nanohttpd', version: '2.3.1'
api group: 'org.apache.commons', name: 'commons-compress', version: '1.21'
api group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
compileOnlyApi group: 'org.jetbrains', name: 'annotations', version: '16.0.3'
}
tasks.processResources {
dependsOn ':log4j-patch:jar'
into('assets/game') {
from project(':log4j-patch').file("build/libs")
}
}

27
HMCLCore/build.gradle.kts Normal file
View File

@@ -0,0 +1,27 @@
plugins {
`java-library`
}
dependencies {
api("com.google.code.gson:gson:2.8.1")
api("com.moandjiezana.toml:toml4j:0.7.2")
api("org.tukaani:xz:1.8")
api("org.hildan.fxgson:fx-gson:3.1.0") {
exclude(group = "org.jetbrains", module = "annotations")
}
api("org.jenkins-ci:constant-pool-scanner:1.2")
api("com.github.steveice10:opennbt:1.1")
api("com.nqzero:permit-reflect:0.3")
api("org.nanohttpd:nanohttpd:2.3.1")
api("org.apache.commons:commons-compress:1.21")
api("org.apache.commons:commons-lang3:3.12.0")
compileOnlyApi("org.jetbrains:annotations:16.0.3")
}
tasks.processResources {
dependsOn(":log4j-patch:jar")
into("assets/game") {
from(project(":log4j-patch").file("build/libs"))
}
}