Slackbot
03/26/2023, 1:03 PMgrossws
03/26/2023, 3:29 PMgrossws
03/26/2023, 3:37 PMAlso 8.1-rc-1 asks for java version but doesn't use it (i.e. for selecting toolchain)True for generated convention plugin but not for a build without it. Generated with
gradle init --dsl kotlin --type java-library --test-framework junit-jupiter --package org.acme --project-name t --split-project --incubating
➜ cat lib/build.gradle.kts
/*
* This file was generated by the Gradle 'init' task.
*
* This project uses @Incubating APIs which are subject to change.
*/
plugins {
// Apply the java-library plugin for API and implementation separation.
`java-library`
}
dependencies {
// This dependency is exported to consumers, that is to say found on their compile classpath.
api("org.apache.commons:commons-math3:3.6.1")
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
implementation("com.google.guava:guava:31.1-jre")
}
➜ cat build-logic/src/main/kotlin/org.acme.java-common-conventions.gradle.kts
/*
* This file was generated by the Gradle 'init' task.
*
* This project uses @Incubating APIs which are subject to change.
*/
plugins {
// Apply the java Plugin to add support for Java.
java
}
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}
dependencies {
constraints {
// Define dependency versions as constraints
implementation("org.apache.commons:commons-text:1.10.0")
}
}
testing {
suites {
// Configure the built-in test suite
val test by getting(JvmTestSuite::class) {
// Use JUnit Jupiter test framework
useJUnitJupiter("5.9.1")
}
}
}
Ken Yee
03/26/2023, 3:49 PMgenerates convention plugins but doesn't apply themThat's weird... mine clearly applied them. I got the linkedlist template where it created a utilities and list module....it never generated a lib module like yours did. Maybe a bug in the 8.1 template?
grossws
03/26/2023, 3:55 PMgrossws
03/26/2023, 3:57 PM--type java-application
it applies convention pluginsKen Yee
03/26/2023, 3:57 PMgrossws
03/26/2023, 5:11 PM