Skip to content

Commit 9a7d084

Browse files
committed
gradle magic
1 parent a38e0ac commit 9a7d084

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

simpleclient-1.19.4/build.gradle

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,13 @@ processResources {
3737

3838
tasks.withType(JavaCompile).configureEach {
3939
it.options.release = 17
40-
}
40+
}
41+
42+
task copyJar(type: Copy) {
43+
group = 'build'
44+
from remapJar
45+
if (!rootProject.file('build/libs').exists()) rootProject.file('build/libs').mkdirs()
46+
into rootProject.file('build/libs')
47+
}
48+
49+
remapJar.finalizedBy(copyJar)

simpleclient-1.20/build.gradle

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,13 @@ processResources {
3737

3838
tasks.withType(JavaCompile).configureEach {
3939
it.options.release = 17
40-
}
40+
}
41+
42+
task copyJar(type: Copy) {
43+
group = 'build'
44+
from remapJar
45+
if (!rootProject.file('build/libs').exists()) rootProject.file('build/libs').mkdirs()
46+
into rootProject.file('build/libs')
47+
}
48+
49+
remapJar.finalizedBy(copyJar)

0 commit comments

Comments
 (0)