-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8fb0346
commit 790da48
Showing
10 changed files
with
110 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
.github/workflows/checks.yml → .github/workflows/pr-checks.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
import com.vanniktech.maven.publish.GradlePlugin | ||
import com.vanniktech.maven.publish.JavaLibrary | ||
import com.vanniktech.maven.publish.JavadocJar | ||
import com.vanniktech.maven.publish.KotlinJvm | ||
import com.vanniktech.maven.publish.KotlinMultiplatform | ||
import com.vanniktech.maven.publish.MavenPublishBaseExtension | ||
import com.vanniktech.maven.publish.SonatypeHost | ||
|
||
|
@@ -7,7 +12,9 @@ buildscript { | |
mavenCentral() | ||
google() | ||
gradlePluginPortal() | ||
maven { url = uri("https://oss.sonatype.org/service/local/repositories/snapshots/content") } // SNAPSHOT Versions for statik | ||
maven { | ||
url = uri("https://oss.sonatype.org/service/local/repositories/snapshots/content") | ||
} // SNAPSHOT Versions for statik | ||
} | ||
} | ||
|
||
|
@@ -16,7 +23,9 @@ allprojects { | |
mavenCentral() | ||
google() | ||
gradlePluginPortal() | ||
maven { url = uri("https://oss.sonatype.org/service/local/repositories/snapshots/content") } // SNAPSHOT Versions for statik | ||
maven { | ||
url = uri("https://oss.sonatype.org/service/local/repositories/snapshots/content") | ||
} // SNAPSHOT Versions for statik | ||
} | ||
} | ||
|
||
|
@@ -39,14 +48,53 @@ subprojects | |
it.afterEvaluate { | ||
val hasPublishPlugin = it.plugins.hasPlugin("com.vanniktech.maven.publish.base") | ||
if (hasPublishPlugin) { | ||
val extension = it.extensions.getByType(MavenPublishBaseExtension::class.java) | ||
extension.apply { | ||
// publishToMavenCentral(SonatypeHost.DEFAULT) | ||
// or when publishing to https://s01.oss.sonatype.org | ||
it.extensions.getByType(MavenPublishBaseExtension::class.java).apply { | ||
publishToMavenCentral(SonatypeHost.S01, automaticRelease = true) | ||
// or when publishing to https://central.sonatype.com/ | ||
signAllPublications() | ||
pom { | ||
url.set("https://www.github.com/square/invert") | ||
licenses { | ||
license { | ||
name.set("The Apache Software License, Version 2.0") | ||
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt") | ||
distribution.set("repo") | ||
} | ||
} | ||
scm { | ||
url.set("https://www.github.com/square/invert") | ||
connection.set("scm:git:git://github.com/square/invert.git") | ||
developerConnection.set("scm:git:ssh://[email protected]/square/invert.git") | ||
} | ||
developers { | ||
developer { | ||
name.set("Block, Inc.") | ||
url.set("https://github.com/square") | ||
} | ||
} | ||
} | ||
if (plugins.hasPlugin("org.jetbrains.kotlin.jvm")) { | ||
configure( | ||
KotlinJvm( | ||
javadocJar = JavadocJar.None(), | ||
sourcesJar = true, | ||
) | ||
) | ||
} | ||
if (plugins.hasPlugin("org.jetbrains.kotlin.multiplatform")) { | ||
configure( | ||
KotlinMultiplatform( | ||
javadocJar = JavadocJar.None(), | ||
sourcesJar = true, | ||
) | ||
) | ||
} | ||
// configure( | ||
// GradlePlugin( | ||
// javadocJar = JavadocJar.None(), | ||
// sourcesJar = true, | ||
// ) | ||
// ) | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters