mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-11-26 07:46:54 +00:00
fixup! build speed
This commit is contained in:
1 parent
407aaf203e
commit
05ddc8b8a6
2 files changed
+9
-4
No files matched your search
Vendored
+2
-3
@@ -29,8 +29,7 @@ pipeline {
|
||||
stage('Build') {
|
||||
steps {
|
||||
withGradle {
|
||||
sh './gradlew build --rerun-tasks -x check'
|
||||
sh './gradlew javadoc'
|
||||
sh './gradlew build javadoc -x check'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,7 +45,7 @@ pipeline {
|
||||
stage('Tests') {
|
||||
steps {
|
||||
withGradle {
|
||||
sh './gradlew test --rerun-tasks'
|
||||
sh './gradlew test --rerun'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import org.gradle.api.Project
|
||||
import org.gradle.api.component.AdhocComponentWithVariants
|
||||
import org.gradle.api.publish.PublishingExtension
|
||||
import org.gradle.api.publish.maven.MavenPublication
|
||||
import org.gradle.api.publish.maven.tasks.AbstractPublishToMaven
|
||||
@@ -6,7 +7,6 @@ import org.gradle.kotlin.dsl.configure
|
||||
import org.gradle.kotlin.dsl.create
|
||||
import org.gradle.kotlin.dsl.get
|
||||
import org.gradle.kotlin.dsl.maven
|
||||
import org.gradle.kotlin.dsl.provideDelegate
|
||||
import org.gradle.kotlin.dsl.withType
|
||||
|
||||
fun Project.configurePublishing() {
|
||||
@@ -14,6 +14,12 @@ fun Project.configurePublishing() {
|
||||
onlyIf("the project has a version") { publication.version != Project.DEFAULT_VERSION }
|
||||
}
|
||||
|
||||
pluginManager.withPlugin("java-test-fixtures") {
|
||||
val java = components["java"] as AdhocComponentWithVariants
|
||||
java.withVariantsFromConfiguration(configurations["testFixturesApiElements"]) { skip() }
|
||||
java.withVariantsFromConfiguration(configurations["testFixturesRuntimeElements"]) { skip() }
|
||||
}
|
||||
|
||||
configure<PublishingExtension> {
|
||||
publications {
|
||||
create<MavenPublication>("mavenJava") {
|
||||
|
||||
Reference in new issue
Block a user