-
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.
- Loading branch information
1 parent
650aef5
commit 5dfbca4
Showing
2 changed files
with
48 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import com.vanniktech.maven.publish.SonatypeHost | ||
|
||
buildscript { | ||
repositories { | ||
mavenLocal() | ||
|
@@ -12,6 +14,7 @@ plugins { | |
id "maven-publish" | ||
id "java" | ||
id 'ch.netzwerg.release' version '1.2.5' | ||
id "com.vanniktech.maven.publish" version "0.29.0" | ||
} | ||
|
||
group = 'org.reactivecouchbase.json' | ||
|
@@ -63,6 +66,45 @@ artifacts { | |
archives javadocJar | ||
} | ||
|
||
mavenPublishing { | ||
publishToMavenCentral(SonatypeHost.DEFAULT) | ||
// or when publishing to https://s01.oss.sonatype.org | ||
// publishToMavenCentral(SonatypeHost.S01) | ||
// or when publishing to https://central.sonatype.com/ | ||
// publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) | ||
|
||
signAllPublications() | ||
|
||
coordinates("org.reactivecouchbase.json", "json-lib", "${project.version}") | ||
|
||
pom { | ||
name = "JSON lib" | ||
description = "A JSON library highly inspired and copied from @mandubian (Pascal Voitot) Json lib for Play 2 Scala" | ||
inceptionYear = "2018" | ||
url = "https://github.com/mathieuancelin/json-lib/" | ||
licenses { | ||
license { | ||
name = "The Apache License, Version 2.0" | ||
url = "http://www.apache.org/licenses/LICENSE-2.0.txt" | ||
distribution = "http://www.apache.org/licenses/LICENSE-2.0.txt" | ||
} | ||
} | ||
developers { | ||
developer { | ||
id = "mathieuancelin" | ||
name = "Mathieu ANCELIN" | ||
url = "https://github.com/mathieuancelin/" | ||
} | ||
} | ||
scm { | ||
url = "https://github.com/mathieuancelin/json-lib/" | ||
connection = "scm:git:git://github.com/mathieuancelin/json-lib.git" | ||
developerConnection = "scm:git:ssh://[email protected]/mathieuancelin/json-lib.git" | ||
} | ||
} | ||
|
||
} | ||
|
||
publishing { | ||
publications { | ||
mavenPublication(MavenPublication) { | ||
|