Skip to content

Commit

Permalink
Update gradle and switch to implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
kantenkugel committed Aug 16, 2020
1 parent 23a521c commit 486f92d
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 24 deletions.
30 changes: 15 additions & 15 deletions bot/build.gradle
Expand Up @@ -12,50 +12,50 @@ repositories {

dependencies {
// JDA
compile ('net.dv8tion:JDA:4.2.0_171') {
implementation ('net.dv8tion:JDA:4.2.0_171') {
exclude module: 'opus-java'
}

// Trove Collections
compile group: 'net.sf.trove4j', name: 'trove4j', version: '3.0.3'
implementation group: 'net.sf.trove4j', name: 'trove4j', version: '3.0.3'

// Other Collections
compile group: 'org.apache.commons', name: 'commons-collections4', version: '4.1'
implementation group: 'org.apache.commons', name: 'commons-collections4', version: '4.1'

// Webhooks
compile group: 'club.minnced', name: 'discord-webhooks', version: '0.1.3'
implementation group: 'club.minnced', name: 'discord-webhooks', version: '0.1.3'

// Apache commons Lang 3
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.7'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.7'

// Apache Commons Text
compile group: 'org.apache.commons', name: 'commons-text', version: '1.2'
implementation group: 'org.apache.commons', name: 'commons-text', version: '1.2'

// Apache Commons IO
compile group: 'commons-io', name: 'commons-io', version: '2.6'
implementation group: 'commons-io', name: 'commons-io', version: '2.6'

// Groovy JSR-223 / Script engine. TODO: might change eval command to jshell in the future
compile group: 'org.codehaus.groovy', name: 'groovy-jsr223', version: '2.5.3'
implementation group: 'org.codehaus.groovy', name: 'groovy-jsr223', version: '2.5.3'

// Gson
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.2'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.2'

// Guava
compile group: 'com.google.guava', name: 'guava', version: '24.0-jre'
implementation group: 'com.google.guava', name: 'guava', version: '24.0-jre'

// Dropbox
compile group: 'com.dropbox.core', name: 'dropbox-core-sdk', version: '3.0.6'
implementation group: 'com.dropbox.core', name: 'dropbox-core-sdk', version: '3.0.6'

// Zip4J
compile group: 'net.lingala.zip4j', name: 'zip4j', version: '1.3.2'
implementation group: 'net.lingala.zip4j', name: 'zip4j', version: '1.3.2'

// jsoup HTML parser library @ http://jsoup.org/
compile group: 'org.jsoup', name: 'jsoup', version: '1.11.2'
implementation group: 'org.jsoup', name: 'jsoup', version: '1.11.2'

// Remark for html -> markdown (docs)
compile "com.kotcrab.remark:remark:1.0.0"
implementation "com.kotcrab.remark:remark:1.0.0"

testCompile 'junit:junit:4.12'
testImplementation 'junit:junit:4.12'
}

run {
Expand Down
Expand Up @@ -108,7 +108,7 @@ public void dispatch(final User sender, final TextChannel channel, final Message
}

MessageEmbed embed = eb.build();
if(embed.isSendable(AccountType.BOT))
if(embed.isSendable())
{
reply(event, embed);
}
Expand Down
Expand Up @@ -41,10 +41,10 @@ public static String getDependencyBlock(final List<VersionedItem> items, final b
public static String getDependencyString(final VersionedItem item, final boolean pretty)
{
if (pretty)
return String.format("compile group: '%s', name: '%s', version: '%s'",
return String.format("implementation group: '%s', name: '%s', version: '%s'",
item.getGroupId(), item.getArtifactId(), item.getVersion());
else
return String.format("compile '%s:%s:%s'", item.getGroupId(), item.getArtifactId(), item.getVersion());
return String.format("implementation '%s:%s:%s'", item.getGroupId(), item.getArtifactId(), item.getVersion());
}

public static String getPluginsBlock(final Collection<Pair<String, String>> plugins)
Expand Down
10 changes: 5 additions & 5 deletions build.gradle
@@ -1,7 +1,7 @@
plugins {
id 'idea'
id 'com.github.ben-manes.versions' version '0.20.0'
id 'com.github.johnrengelman.shadow' version '4.0.2' apply false
id 'com.github.johnrengelman.shadow' version '6.0.0' apply false
}

allprojects {
Expand All @@ -26,19 +26,19 @@ subprojects {
compileJava.options.encoding = 'UTF-8'

shadowJar { task ->
baseName = task.project.name.capitalize()
archiveBaseName = task.project.name.capitalize()
}

repositories {
jcenter()
}

dependencies {
compile 'org.slf4j:slf4j-api:1.7.25'
compile 'ch.qos.logback:logback-classic:1.2.3'
implementation 'org.slf4j:slf4j-api:1.7.25'
implementation 'ch.qos.logback:logback-classic:1.2.3'
}
}

project(':bot') {
project(':launcher') {
tasks.run.enabled = false
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 486f92d

Please sign in to comment.