micronaut-projects / micronaut-gradle-plugin

A Gradle Plugin for Micronaut
Apache License 2.0
66 stars 43 forks source link

Exception: Cannot add task 'testNativeImage' #303

Closed saschpe closed 2 years ago

saschpe commented 2 years ago

Expected Behavior

No exception

Actual Behaviour

FAILURE: Build failed with an exception.

Steps To Reproduce

A complex project with the following in it's root build.gradle.kts:

subprojects {
  tasks {
        withType<Test> {
            failFast = true
            testLogging {
                events = setOf(org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED)
                // NOTE: Uncomment this when you need a lot of output:
                // showStandardStreams = true
                exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
            }
        }
  }
}

Environment Information

No response

Example Application

No response

Version

3.1.1

twobeeb commented 2 years ago

Hi @melix, @sdelamo

Same issue here if I try to migrate to 3.0.0 plugin. It seems to be fixed if I comment the following in settings.gradle:

/*
buildscript {
    repositories {
        maven {
            url 'https://plugins.gradle.org/m2/'
        }
    }
    dependencies {
        classpath 'io.alcide:gradle-semantic-build-versioning:4.2.1'
    }
}

apply plugin: 'io.alcide.gradle-semantic-build-versioning'
*/
rootProject.name="ns4kafka"
include 'cli'
include 'api'

Project is available here : https://github.com/michelin/ns4kafka