diff --git a/build.gradle b/build.gradle index 841460a4..5581366e 100644 --- a/build.gradle +++ b/build.gradle @@ -14,7 +14,7 @@ sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 jar{ - baseName = 'JavaBotBlockAPI' + setArchivesBaseName('JavaBotBlockAPI') } repositories{ @@ -33,12 +33,12 @@ dependencies{ } task sourcesJar(type: Jar, dependsOn: classes){ - classifier = 'sources' + getArchiveClassifier().set("sources") from sourceSets.main.allSource } task javadocJar(type: Jar, dependsOn: javadoc){ - classifier = 'javadoc' + getArchiveClassifier().set("javadoc") from(javadoc.destinationDir) } @@ -74,21 +74,4 @@ publishing{ artifact(sourcesJar) } } - /* - repositories{ - maven{ - name = "GitHubPackages" - url = uri("https://maven.pkg.github.com/botblock/JavaBotBlockAPI") - credentials{ - username = "botblock" - password = System.getenv("GITHUB_TOKEN") - } - } - publications{ - gpr(MavenPublication){ - from(components.java) - } - } - } - */ } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index d5beda97..ab40e7a5 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ #Mon Sep 30 17:27:13 CEST 2019 -distributionUrl=https\://services.gradle.org/distributions/gradle-4.8.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-5.5-all.zip distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStorePath=wrapper/dists