Skip to content

Commit 343e253

Browse files
Create .jitpack.yml (#4706)
Re-create `.jitpack.yml` and merge Gradle commands and add toolchain info. --------- Co-authored-by: Marc Philipp <[email protected]>
1 parent 94ae7ef commit 343e253

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

.jitpack.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
before_install:
2+
- sdk update
3+
- sdk install java 24-open
4+
- sdk use java 24-open
5+
install:
6+
- ./gradlew --show-version javaToolchains publishToMavenLocal

gradle/plugins/common/src/main/kotlin/junitbuild.publishing-conventions.gradle.kts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,6 @@ group = when (project) {
1818
else -> "org.junit"
1919
}
2020

21-
// ensure project is built successfully before publishing it
22-
tasks.withType<PublishToMavenRepository>().configureEach {
23-
dependsOn(provider {
24-
val tempRepoName: String by rootProject
25-
if (repository.name != tempRepoName) {
26-
listOf(tasks.build)
27-
} else {
28-
emptyList()
29-
}
30-
})
31-
}
32-
tasks.withType<PublishToMavenLocal>().configureEach {
33-
dependsOn(tasks.build)
34-
}
35-
3621
val signArtifacts = buildParameters.publishing.signArtifacts.getOrElse(!(project.version.isSnapshot() || buildParameters.ci))
3722

3823
signing {

0 commit comments

Comments
 (0)