-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add maven publish configuration for gradle plugin
- Loading branch information
1 parent
4c16316
commit 0227961
Showing
1 changed file
with
66 additions
and
0 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 |
---|---|---|
|
@@ -61,4 +61,70 @@ java { | |
registerFeature('cli') { | ||
usingSourceSet(sourceSets.main) | ||
} | ||
} | ||
|
||
publishing { | ||
|
||
repositories { | ||
maven { | ||
def releaseRepo = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" | ||
def snapshotRepo = "https://oss.sonatype.org/content/repositories/snapshots/" | ||
url = isReleaseVersion ? releaseRepo : snapshotRepo | ||
credentials { | ||
username = project.hasProperty('ossrhUsername') ? ossrhUsername : "Unknown user" | ||
password = project.hasProperty('ossrhPassword') ? ossrhPassword : "Unknown password" | ||
} | ||
} | ||
} | ||
|
||
// publications { | ||
// kolasu_lionweb(MavenPublication) { | ||
// from components.java | ||
// artifactId "kolasu-" + project.name | ||
// artifact sourcesJar | ||
// artifact javadocJar | ||
// suppressPomMetadataWarningsFor('cliApiElements') | ||
// suppressPomMetadataWarningsFor('cliRuntimeElements') | ||
// pom { | ||
// name = "kolasu-" + project.name | ||
// description = "Gradle plugin for the integration of Kolasu with LIonWeb" | ||
// version = project.version | ||
// packaging = 'jar' | ||
// url = 'https://github.com/Strumenta/kolasu' | ||
// | ||
// scm { | ||
// connection = 'scm:git:https://github.com/Strumenta/kolasu.git' | ||
// developerConnection = 'scm:git:[email protected]:Strumenta/kolasu.git' | ||
// url = 'https://github.com/Strumenta/kolasu.git' | ||
// } | ||
// | ||
// licenses { | ||
// license { | ||
// name = 'Apache Licenve V2.0' | ||
// url = 'https://www.apache.org/licenses/LICENSE-2.0' | ||
// distribution = 'repo' | ||
// } | ||
// } | ||
// | ||
// developers { | ||
// developer { | ||
// id = 'ftomassetti' | ||
// name = 'Federico Tomassetti' | ||
// email = '[email protected]' | ||
// } | ||
// developer { | ||
// id = 'alessiostalla' | ||
// name = 'Alessio Stalla' | ||
// email = '[email protected]' | ||
// } | ||
// developer { | ||
// id = 'lorenzoaddazi' | ||
// name = 'Lorenzo Addazi' | ||
// email = '[email protected]' | ||
// } | ||
// } | ||
// | ||
// } | ||
// } | ||
// } | ||
} |