You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when running tests in a new module which uses threshr as a dependency, the following error is produced (despite the new project not using any jacoco dependency)
Execution failed for task ':kspKotlin'.
> Could not resolve all files for configuration ':compileClasspath'.
> Could not find org.apache.maven.reporting:maven-reporting-api:${project.prerequisites.maven}.
Required by:
project :> com.graqr:threshr:0.0.12 > org.jacoco:jacoco-maven-plugin:0.8.11
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
We want to be sure this isn't a one-off problem.
This problem is something that I can consistently produce.
Expected Behavior
I shouldn't have any mention of jacoco in my new repo since i'm not using jacoco.
Steps To Reproduce
create a kotlin project with the following build.gradle.kts file.
build.gradle.kts
plugins {
id("org.jetbrains.kotlin.jvm") version "1.9.23"
id("org.jetbrains.kotlin.plugin.allopen") version "1.9.23"
id("com.google.devtools.ksp") version "1.9.23-1.0.19"
id("groovy")
id("com.github.johnrengelman.shadow") version "8.1.1"
id("io.micronaut.application") version "4.3.8"
id("io.micronaut.test-resources") version "4.3.8"
id("io.micronaut.aot") version "4.3.8"
}
version ="0.1"
group ="com.graqr"val kotlinVersion = project.properties["kotlinVersion"]
val threshrVersion ="0.0.12"val jobrunrMnVersion ="6.3.5"
repositories {
mavenCentral()
}
dependencies {
ksp("io.micronaut.data:micronaut-data-processor")
ksp("io.micronaut:micronaut-http-validation")
ksp("io.micronaut.openapi:micronaut-openapi")
implementation("io.micronaut:micronaut-jackson-databind")
implementation("io.micronaut:micronaut-retry")
implementation("io.micronaut.data:micronaut-data-jdbc")
implementation("io.micronaut.kotlin:micronaut-kotlin-extension-functions")
implementation("io.micronaut.kotlin:micronaut-kotlin-runtime")
implementation("io.micronaut.problem:micronaut-problem-json")
implementation("io.micronaut.sql:micronaut-jdbc-hikari")
implementation("org.jetbrains.kotlin:kotlin-reflect:${kotlinVersion}")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:${kotlinVersion}")
implementation("org.jobrunr:jobrunr-micronaut-feature:${jobrunrMnVersion}")
compileOnly("com.graqr:threshr:${threshrVersion}")
compileOnly("io.micronaut:micronaut-http-client")
compileOnly("io.micronaut.openapi:micronaut-openapi-annotations")
runtimeOnly("com.fasterxml.jackson.module:jackson-module-kotlin")
runtimeOnly("org.postgresql:postgresql")
runtimeOnly("org.slf4j:slf4j-simple")
runtimeOnly("org.yaml:snakeyaml")
testImplementation("io.micronaut:micronaut-http-client")
testImplementation("org.apache.groovy:groovy-sql")
}
application {
mainClass ="com.graqr.ApplicationKt"
}
java {
sourceCompatibility =JavaVersion.toVersion("17")
}
graalvmNative.toolchainDetection =false
micronaut {
runtime("netty")
testRuntime("spock2")
processing {
incremental(true)
annotations("com.graqr.*")
}
aot {
// Please review carefully the optimizations enabled below// Check https://micronaut-projects.github.io/micronaut-aot/latest/guide/ for more details
optimizeServiceLoading =false
convertYamlToJava =false
precomputeOperations =true
cacheEnvironment =true
optimizeClassLoading =true
deduceEnvironment =true
optimizeNetty =true
replaceLogbackXml =true
}
}
it's not great, but a workaround seems to work if you specifically add maven reporting as a dependency this will work again: implementation("org.apache.maven.reporting:maven-reporting-impl:${reportingVersion}")
Current Behavior
when running tests in a new module which uses threshr as a dependency, the following error is produced (despite the new project not using any jacoco dependency)
We want to be sure this isn't a one-off problem.
Expected Behavior
I shouldn't have any mention of jacoco in my new repo since i'm not using jacoco.
Steps To Reproduce
build.gradle.kts
file.build.gradle.kts
A picture is worth a thousand words
NA
Environment
Code of Conduct
The text was updated successfully, but these errors were encountered: