-
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.
Fix publish-plugin configuration (#34)
- Fixed `publish-plugin` configuration. `group`/`version` had to be added to root `build.gradle` and this required some refactoring so that maven publishing configuration correctly references those fields from another build file. - Replaced `jcenter()` documentation leftover with `mavenCentral()`
- Loading branch information
Showing
4 changed files
with
26 additions
and
19 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,20 @@ | ||
apply plugin: 'io.github.gradle-nexus.publish-plugin' | ||
|
||
ext { | ||
publishedGroupId = 'com.vgaidarji' | ||
libraryVersion = '1.0.1' | ||
} | ||
|
||
group = publishedGroupId | ||
version = libraryVersion | ||
|
||
nexusPublishing { | ||
repositories { | ||
sonatype { | ||
// my acc is registered on https://oss.sonatype.org | ||
// and for legacy accs repo url is not required by plugin | ||
username = findProperty('SONATYPE_USERNAME') | ||
password = findProperty('SONATYPE_PASSWORD') | ||
} | ||
} | ||
} |