Skip to content

Commit

Permalink
Update dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
vanniktech committed Jun 4, 2022
1 parent 095960a commit f314d85
Show file tree
Hide file tree
Showing 12 changed files with 308 additions and 243 deletions.
46 changes: 24 additions & 22 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import org.gradle.api.internal.classpath.ModuleRegistry
import org.gradle.api.internal.project.ProjectInternal

buildscript {
ext.kotlinVersion = '1.5.31'
ext.kotlinVersion = '1.6.21'

repositories {
mavenCentral()
Expand All @@ -10,30 +13,26 @@ buildscript {

dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath 'com.github.ben-manes:gradle-versions-plugin:0.20.0'
classpath 'com.vanniktech:gradle-code-quality-tools-plugin:0.16.0'
classpath 'com.vanniktech:gradle-android-junit-jacoco-plugin:0.16.0'
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.16.0'
classpath 'com.vanniktech:gradle-code-quality-tools-plugin:0.21.0'
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.19.0'
}
}

apply plugin: 'groovy'
apply plugin: 'java-library'
apply plugin: 'java-gradle-plugin'
apply plugin: 'kotlin'
apply plugin: 'com.github.ben-manes.versions'
apply plugin: 'com.vanniktech.code.quality.tools'
apply plugin: 'com.vanniktech.android.junit.jacoco'
apply plugin: "com.vanniktech.maven.publish"

validatePlugins {
enableStricterValidation = true
}

codeQualityTools {
ktlint {
toolVersion = '0.30.0'
toolVersion = "0.45.2"
}
detekt {
toolVersion = '1.0.0-RC12'
}
findbugs {
enabled = false
}
pmd {
Expand All @@ -45,9 +44,6 @@ codeQualityTools {
cpd {
enabled = false
}
errorProne {
enabled = false
}
}

gradlePlugin {
Expand All @@ -62,30 +58,36 @@ gradlePlugin {
repositories {
mavenCentral()
google()
jcenter()
gradlePluginPortal()
}

dependencies {
implementation localGroovy()
implementation gradleApi()
api "guru.nidi:graphviz-java:0.8.1"

testImplementation 'junit:junit:4.13-beta-2'
testImplementation 'org.assertj:assertj-core:3.12.0'
testImplementation 'com.android.tools.build:gradle:4.0.2'
testImplementation 'junit:junit:4.13.2'
testImplementation "com.android.tools.build:gradle:7.0.4"
testImplementation "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"

// https://github.com/gradle/gradle/issues/16774#issuecomment-893493869
def toolingApiBuildersJar = (project as ProjectInternal).services.get(ModuleRegistry.class)
.getModule("gradle-tooling-api-builders")
.classpath
.asFiles
.first()
testRuntimeOnly(files(toolingApiBuildersJar))
}

sourceCompatibility = JavaVersion.VERSION_1_7
sourceCompatibility = JavaVersion.VERSION_1_8

wrapper {
gradleVersion = '6.8.3'
gradleVersion = '7.4.2'
distributionType = Wrapper.DistributionType.ALL
}

test {
testLogging {
events "passed", "skipped", "failed"
exceptionFormat "full"
}
}
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-6.8.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit f314d85

Please sign in to comment.