build: fix gradle script deprecations.
This commit is contained in:
@@ -123,7 +123,7 @@ shadowJar {
|
|||||||
attributes 'Created-By': 'Copyright(c) 2013-2020 huangyuhui.',
|
attributes 'Created-By': 'Copyright(c) 2013-2020 huangyuhui.',
|
||||||
'Main-Class': mainClassName,
|
'Main-Class': mainClassName,
|
||||||
'Multi-Release': 'true',
|
'Multi-Release': 'true',
|
||||||
'Implementation-Version': version,
|
'Implementation-Version': project.version,
|
||||||
'Class-Path': 'pack200.jar',
|
'Class-Path': 'pack200.jar',
|
||||||
'Add-Opens': [
|
'Add-Opens': [
|
||||||
'java.base/java.lang',
|
'java.base/java.lang',
|
||||||
|
|||||||
@@ -7,6 +7,6 @@ dependencies {
|
|||||||
jar {
|
jar {
|
||||||
manifest {
|
manifest {
|
||||||
attributes 'Created-By': 'Copyright(c) 2013-2020 huangyuhui.',
|
attributes 'Created-By': 'Copyright(c) 2013-2020 huangyuhui.',
|
||||||
'Implementation-Version': version
|
'Implementation-Version': project.version
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
buildscript {
|
buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
mavenCentral()
|
||||||
maven { url 'https://plugins.gradle.org/m2/' }
|
maven { url 'https://plugins.gradle.org/m2/' }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -20,7 +20,6 @@ subprojects {
|
|||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
jcenter()
|
|
||||||
|
|
||||||
maven { url 'https://jitpack.io' }
|
maven { url 'https://jitpack.io' }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user