-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish
:core
to maven central repository (#29)
* Publish to MavenCentral * Change to use com.vanniktech:gradle-maven-publish-plugin * Update README
- Loading branch information
1 parent
21bcab3
commit 1d0debb
Showing
10 changed files
with
90 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,5 @@ build | |
/.idea/modules | ||
|
||
access.log | ||
|
||
.ignore.gradle.properties |
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
59 changes: 59 additions & 0 deletions
59
...tlin/io/github/lavenderses/aws_appconfig_openfeature_provider/plugin/PublicationPlugin.kt
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
package io.github.lavenderses.aws_appconfig_openfeature_provider.plugin | ||
|
||
import com.vanniktech.maven.publish.MavenPublishBaseExtension | ||
import com.vanniktech.maven.publish.SonatypeHost | ||
import org.gradle.api.Plugin | ||
import org.gradle.api.Project | ||
import org.gradle.api.plugins.JavaPluginExtension | ||
import org.gradle.api.publish.maven.plugins.MavenPublishPlugin | ||
import org.gradle.api.publish.tasks.GenerateModuleMetadata | ||
import org.gradle.kotlin.dsl.getByType | ||
import org.gradle.kotlin.dsl.withType | ||
|
||
class PublicationPlugin: Plugin<Project> { | ||
|
||
override fun apply(target: Project) { | ||
with(target) { | ||
with(pluginManager) { | ||
apply(MavenPublishPlugin::class.java) | ||
apply(com.vanniktech.maven.publish.MavenPublishPlugin::class.java) | ||
} | ||
|
||
with(extensions.getByType<MavenPublishBaseExtension>()) { | ||
coordinates(projectGroupId, "aws-appconfig-openfeature-provider-java", projectVersion) | ||
|
||
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = true) | ||
signAllPublications() | ||
|
||
pom { | ||
inceptionYear.set("2024") | ||
url.set("https://github.com/lavenderses/AWSAppConfig-OpenFeature-provider-java") | ||
|
||
licenses { | ||
license { | ||
name.set("The Apache License, Version 2.0") | ||
url.set("https://github.com/lavenderses/AWSAppConfig-OpenFeature-provider-java/blob/main/LICENSE") | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id.set("lavenderses") | ||
name.set("cat") | ||
email.set(System.getenv("EMAIL")) | ||
} | ||
} | ||
|
||
scm { | ||
url.set("https://github.com/lavenderses/AWSAppConfig-OpenFeature-provider-java") | ||
} | ||
} | ||
} | ||
|
||
tasks.withType<GenerateModuleMetadata> { | ||
// TODO: Remove kotlinSourcesJar | ||
dependsOn("kotlinSourcesJar", "plainJavadocJar") | ||
} | ||
} | ||
} | ||
} |
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
Empty file.
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