-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add publishing support to workflow & gradle build script
- Loading branch information
1 parent
5deabb8
commit 672aed8
Showing
6 changed files
with
121 additions
and
15 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// Configuration for Maven Central by Sonatype. | ||
// See: https://github.com/gradle-nexus/publish-plugin | ||
nexusPublishing { | ||
repositories { | ||
sonatype { | ||
nexusUrl.set(uri('https://s01.oss.sonatype.org/service/local/')) | ||
snapshotRepositoryUrl.set(uri('https://s01.oss.sonatype.org/content/repositories/snapshots/')) | ||
username = System.getenv('MAVEN_USERNAME') | ||
password = System.getenv('MAVEN_PASSWORD') | ||
} | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
maven(MavenPublication) { | ||
from components.java | ||
|
||
pom { | ||
group = 'dev.openfga' | ||
name = 'openfga-sdk' | ||
version = '0.1.0' | ||
description = 'This is an autogenerated Java SDK for OpenFGA. It provides a wrapper around the [OpenFGA API definition](https://openfga.dev/api).' | ||
url = 'https://openfga.dev' | ||
licenses { | ||
license { | ||
name = 'Apache-2.0' | ||
url = 'https://github.com/openfga/openfga/blob/main/LICENSE' | ||
} | ||
} | ||
developers { | ||
developer { | ||
name = 'OpenFGA' | ||
url = 'https://openfga.dev' | ||
} | ||
} | ||
contributors { | ||
contributor { | ||
id = 'booniepepper' | ||
name = 'J.R. Hill' | ||
url = 'https://so.dang.cool' | ||
} | ||
} | ||
scm { | ||
url = 'https://github.com/openfga/java-sdk' | ||
connection = 'scm:git:[email protected]:openfga/java-sdk.git' | ||
developerConnection = 'scm:git:[email protected]:openfga/java-sdk.git' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
sign publishing.publications.maven | ||
} |
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