Skip to content

Commit

Permalink
Update to Gradle 7.2 (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
ROMVoid95 committed Oct 18, 2021
1 parent 21f7efb commit 2435212
Show file tree
Hide file tree
Showing 10 changed files with 219 additions and 152 deletions.
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import org.apache.tools.ant.filters.ReplaceTokens

plugins {
id 'maven-publish'
id 'com.github.ben-manes.versions' version '0.17.0'
id 'com.github.johnrengelman.shadow' version '2.0.2'
id "com.github.ben-manes.versions" version "0.39.0"
id "com.github.johnrengelman.shadow" version "7.0.0"
}

def versionInfo = [major: '1', minor: System.getenv("BUILD_NUMBER").toString()]
Expand Down Expand Up @@ -205,14 +205,14 @@ subprojects {

afterEvaluate {
if(project.includeInParent) {
rootProject.dependencies.compile project
rootProject.dependencies.implementation project
}
}
}

configurations {
compile {
description = 'compile'
implementation {
description = 'implementation'
transitive = true
}
}
Expand Down Expand Up @@ -289,7 +289,7 @@ publishing {
repositoryNode.appendNode('url', 'https://m2.chew.pro')

def dependenciesNode = asNode().appendNode('dependencies')
configurations.compile.allDependencies.each {
configurations.implementation.allDependencies.each {
def dependencyNode = dependenciesNode.appendNode('dependency')
dependencyNode.appendNode('groupId', it.group)
dependencyNode.appendNode('artifactId', it instanceof ProjectDependency ? it.dependencyProject.artifactId : it.name)
Expand Down
10 changes: 5 additions & 5 deletions command/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
*/
dependencies {
compileOnly jda()
compile slf4j()
compile okhttp()
compile findbugs()
compile json()
implementation slf4j()
implementation okhttp()
implementation findbugs()
implementation json()

compile commons()
implementation commons()
}

javadoc {
Expand Down
2 changes: 1 addition & 1 deletion doc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
dependencies {
compileOnly jda()

compile commons()
implementation commons()
}
10 changes: 5 additions & 5 deletions examples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
*/
dependencies {
compileOnly jda()
compile slf4j()
implementation slf4j()

compile commons()
compile command()
compile menu()
compile doc()
implementation commons()
implementation command()
implementation menu()
implementation doc()
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.8.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 2435212

Please sign in to comment.