build: fix gradle script deprecations.

This commit is contained in:
Yuhui Huang 2021-08-20 15:58:44 +08:00
parent b3564d9d27
commit 2022af8a53
3 changed files with 3 additions and 4 deletions

View File

@ -123,7 +123,7 @@ shadowJar {
attributes 'Created-By': 'Copyright(c) 2013-2020 huangyuhui.',
'Main-Class': mainClassName,
'Multi-Release': 'true',
'Implementation-Version': version,
'Implementation-Version': project.version,
'Class-Path': 'pack200.jar',
'Add-Opens': [
'java.base/java.lang',

View File

@ -7,6 +7,6 @@ dependencies {
jar {
manifest {
attributes 'Created-By': 'Copyright(c) 2013-2020 huangyuhui.',
'Implementation-Version': version
'Implementation-Version': project.version
}
}

View File

@ -1,6 +1,6 @@
buildscript {
repositories {
jcenter()
mavenCentral()
maven { url 'https://plugins.gradle.org/m2/' }
}
}
@ -20,7 +20,6 @@ subprojects {
repositories {
mavenCentral()
jcenter()
maven { url 'https://jitpack.io' }
}