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.', 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',

View File

@ -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
} }
} }

View File

@ -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' }
} }