Skip to content

Commit

Permalink
Revert "Move java and test configs out"
Browse files Browse the repository at this point in the history
This reverts commit bf70502.
  • Loading branch information
Goooler committed Aug 27, 2024
1 parent bf70502 commit 1e4b764
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ val isCiBuild = providers.environmentVariable("CI").isPresent

tasks.withType<Test>().configureEach {
useJUnitPlatform()
inputs.dir("src/test/test-projects").withPropertyName("testProjects")

maxParallelForks = if (isCiBuild) {
Runtime.getRuntime().availableProcessors()
Expand Down
12 changes: 12 additions & 0 deletions build-logic/src/main/kotlin/me.champeau.convention.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ version = providers.gradleProperty("VERSION_NAME").get()
group = providers.gradleProperty("GROUP").get()
description = providers.gradleProperty("POM_DESCRIPTION").get()

java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
withSourcesJar()
withJavadocJar()
}

tasks.test {
inputs.dir("src/test/test-projects").withPropertyName("testProjects")
}

gradlePlugin {
website = providers.gradleProperty("POM_URL")
vcsUrl = providers.gradleProperty("POM_URL")
Expand Down
8 changes: 0 additions & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@ buildScanRecipes {
recipe(mapOf("baseUrl" to "https://github.com/melix/japicmp-gradle-plugin/tree"), "git-commit")
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
withSourcesJar()
withJavadocJar()
}

dependencies {
api("com.github.siom79.japicmp:japicmp:0.23.0") {
exclude(group = "com.google.guava")
Expand Down

0 comments on commit 1e4b764

Please sign in to comment.