mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-12-02 02:44:33 +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') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
withGradle {
|
withGradle {
|
||||||
sh './gradlew build --rerun-tasks -x check'
|
sh './gradlew build javadoc -x check'
|
||||||
sh './gradlew javadoc'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -46,7 +45,7 @@ pipeline {
|
|||||||
stage('Tests') {
|
stage('Tests') {
|
||||||
steps {
|
steps {
|
||||||
withGradle {
|
withGradle {
|
||||||
sh './gradlew test --rerun-tasks'
|
sh './gradlew test --rerun'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import org.gradle.api.Project
|
import org.gradle.api.Project
|
||||||
|
import org.gradle.api.component.AdhocComponentWithVariants
|
||||||
import org.gradle.api.publish.PublishingExtension
|
import org.gradle.api.publish.PublishingExtension
|
||||||
import org.gradle.api.publish.maven.MavenPublication
|
import org.gradle.api.publish.maven.MavenPublication
|
||||||
import org.gradle.api.publish.maven.tasks.AbstractPublishToMaven
|
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.create
|
||||||
import org.gradle.kotlin.dsl.get
|
import org.gradle.kotlin.dsl.get
|
||||||
import org.gradle.kotlin.dsl.maven
|
import org.gradle.kotlin.dsl.maven
|
||||||
import org.gradle.kotlin.dsl.provideDelegate
|
|
||||||
import org.gradle.kotlin.dsl.withType
|
import org.gradle.kotlin.dsl.withType
|
||||||
|
|
||||||
fun Project.configurePublishing() {
|
fun Project.configurePublishing() {
|
||||||
@@ -14,6 +14,12 @@ fun Project.configurePublishing() {
|
|||||||
onlyIf("the project has a version") { publication.version != Project.DEFAULT_VERSION }
|
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> {
|
configure<PublishingExtension> {
|
||||||
publications {
|
publications {
|
||||||
create<MavenPublication>("mavenJava") {
|
create<MavenPublication>("mavenJava") {
|
||||||
|
|||||||
Reference in new issue
Block a user