Skip to content

Commit

Permalink
Build health 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ak-git committed Aug 28, 2024
1 parent 5d1a23d commit e068e3b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 19 deletions.
21 changes: 19 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ plugins {
id 'java-library'
id 'idea'
id 'jacoco'
alias(libs.plugins.dependency.analysis)
alias(libs.plugins.spotbugs)
alias(libs.plugins.ben.manes.versions)
alias(libs.plugins.nebula.lint)
Expand Down Expand Up @@ -37,7 +36,6 @@ allprojects {
group = 'com.ak'
version = '2024.08.25'
apply plugin: 'idea'
apply plugin: 'java-library'
apply plugin: 'jacoco'
apply plugin: 'org.barfuin.gradle.jacocolog'

Expand All @@ -50,6 +48,25 @@ allprojects {
xml.required = true
}
}
}

subprojects {
apply plugin: 'java-library'

java {
toolchain {
languageVersion = JavaLanguageVersion.of(22)
}
}

compileJava {
options.encoding = 'UTF-8'
options.compilerArgs << '-parameters'
}

compileTestJava {
options.encoding = 'UTF-8'
}

test {
forkEvery = 5
Expand Down
16 changes: 1 addition & 15 deletions hello/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,7 @@ dependencies {
implementation libs.jspecify
testImplementation(platform(libs.junit))
testImplementation libs.bundles.test
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(22)
}
}

compileJava {
options.encoding = 'UTF-8'
options.compilerArgs << '-parameters'
}

compileTestJava {
options.encoding = 'UTF-8'
testRuntimeOnly('org.junit.platform:junit-platform-launcher')
}

application {
Expand Down
2 changes: 0 additions & 2 deletions libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ jacocolog = '3.1.0'
spotbugs = '6.0.20'
ben-manes-versions = '0.51.0'
nebula-lint = '19.0.3'
dependency-analysis = '1.33.0'

jspecify = '1.0.0'
junit = '5.11.0'
Expand All @@ -18,7 +17,6 @@ jacocolog = { id = 'org.barfuin.gradle.jacocolog', version.ref = 'jacocolog' }
spotbugs = { id = 'com.github.spotbugs', version.ref = 'spotbugs' }
ben-manes-versions = { id = 'com.github.ben-manes.versions', version.ref = 'ben-manes-versions' }
nebula-lint = { id = 'nebula.lint', version.ref = 'nebula-lint' }
dependency-analysis = { id = 'com.autonomousapps.dependency-analysis', version.ref = 'dependency-analysis' }

[libraries]
jspecify = { module = 'org.jspecify:jspecify', version.ref = 'jspecify' }
Expand Down
4 changes: 4 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ pluginManagement {
}
}

plugins {
id('com.autonomousapps.build-health') version '2.0.0'
}

dependencyResolutionManagement {
repositories {
mavenCentral()
Expand Down

0 comments on commit e068e3b

Please sign in to comment.