Skip to content

Commit

Permalink
Remove an unnecessary release task and move tests configuration to ro…
Browse files Browse the repository at this point in the history
…ot-project
  • Loading branch information
P3ridot committed Jul 16, 2023
1 parent 9cb8332 commit f396a1a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 29 deletions.
24 changes: 13 additions & 11 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent

plugins {
java
`java-library`
Expand Down Expand Up @@ -104,20 +107,19 @@ subprojects {

tasks.withType<Test> {
useJUnitPlatform()
}
setForkEvery(1)
maxParallelForks = 4

tasks.register("release") {
dependsOn(
"publishAllPublicationsToPanda-repositoryRepository"
)
testLogging {
events(TestLogEvent.STARTED, TestLogEvent.PASSED, TestLogEvent.FAILED, TestLogEvent.SKIPPED)
exceptionFormat = TestExceptionFormat.FULL
showExceptions = true
showCauses = true
showStackTraces = true
showStandardStreams = true
}
}
}

tasks.register("release") {
dependsOn(
"clean", "build",
"publishAllPublicationsToPanda-repositoryRepository"
)
}
fun getEnvOrProperty(env: String, property: String): String? =
System.getenv(env) ?: findProperty(property)?.toString()
18 changes: 0 additions & 18 deletions funnycommands/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent

description = "FunnyCommands|Core"

dependencies {
Expand All @@ -18,19 +15,4 @@ dependencies {
testImplementation("org.junit.jupiter:junit-jupiter-api:$junit")
testImplementation("org.junit.jupiter:junit-jupiter-engine:$junit")
testImplementation("org.spigotmc:spigot-api:$spigotVersion")
}

tasks.withType<Test> {
useJUnitPlatform()
setForkEvery(1)
maxParallelForks = 4

testLogging {
events(TestLogEvent.STARTED, TestLogEvent.PASSED, TestLogEvent.FAILED, TestLogEvent.SKIPPED)
exceptionFormat = TestExceptionFormat.FULL
showExceptions = true
showCauses = true
showStackTraces = true
showStandardStreams = true
}
}

0 comments on commit f396a1a

Please sign in to comment.