mirror of
https://github.com/ethauvin/rife2-hello.git
synced 2025-04-25 07:27:12 -07:00
This commit fixes how templates were reloaded. There was a bug in the plugin which used the output of the precompiled templates for development only dependencies, instead of the templates directory. This caused the templates to be always compiled and added as a resource on runtime classpath, when we only wanted the raw templates. This commit also adds functional tests to the build logic, which can be executed by running `./gradlew build-logic:test`.
31 lines
752 B
Kotlin
31 lines
752 B
Kotlin
plugins {
|
|
`java-gradle-plugin`
|
|
groovy
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
gradleApi()
|
|
testImplementation(libs.spock.core)
|
|
testImplementation(gradleTestKit())
|
|
}
|
|
|
|
gradlePlugin {
|
|
plugins {
|
|
create("rife2") {
|
|
id = "com.uwyn.rife2"
|
|
implementationClass = "com.uwyn.rife2.gradle.Rife2Plugin"
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks.withType<Test>().configureEach {
|
|
useJUnitPlatform()
|
|
testLogging {
|
|
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
|
|
events = setOf(org.gradle.api.tasks.testing.logging.TestLogEvent.PASSED, org.gradle.api.tasks.testing.logging.TestLogEvent.SKIPPED, org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED)
|
|
}
|
|
}
|