-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publishing JS, JVM, and Common artifacts to Maven Central (#2)
* Publishing JS, JVM, and Common to Maven Central * Maven central synchronization * Remove some unnecessary code
- Loading branch information
Showing
10 changed files
with
253 additions
and
26 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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/gradle.properties | ||
/.idea | ||
.DS_Store | ||
/**/build | ||
|
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 |
---|---|---|
|
@@ -2,13 +2,87 @@ plugins { | |
id 'kotlin-platform-common' version '1.2.60' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
group = project_group_id | ||
version = project_version | ||
archivesBaseName = 'rx-common' | ||
|
||
dependencies { | ||
compile "org.jetbrains.kotlin:kotlin-stdlib-common" | ||
|
||
testCompile "org.jetbrains.kotlin:kotlin-test-annotations-common" | ||
testCompile "org.jetbrains.kotlin:kotlin-test-common" | ||
} | ||
|
||
apply { | ||
plugin 'signing' | ||
plugin 'maven' | ||
} | ||
|
||
task javadocJar(type: Jar) { | ||
classifier = 'javadoc' | ||
from javadoc | ||
} | ||
|
||
task sourcesJar(type: Jar, dependsOn: classes) { | ||
classifier = "sources" | ||
from sourceSets.main.allSource | ||
} | ||
|
||
signing { | ||
if (upload_artifacts) { | ||
sign configurations.archives | ||
} | ||
} | ||
|
||
artifacts { | ||
archives sourcesJar, javadocJar, jar | ||
} | ||
|
||
uploadArchives { | ||
if (upload_artifacts) { | ||
repositories { | ||
mavenDeployer { | ||
beforeDeployment { | ||
MavenDeployment deployment -> signing.signPom(deployment) | ||
} | ||
|
||
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") { | ||
authentication(userName: ossrhUsername, password: ossrhPassword) | ||
} | ||
|
||
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots") { | ||
authentication(userName: ossrhUsername, password: ossrhPassword) | ||
} | ||
|
||
pom.project { | ||
name project.name | ||
packaging 'jar' | ||
|
||
description "A multiplatform ReactiveX partial implementation." | ||
url 'https://github.com/noheltcj/RxCommon' | ||
|
||
scm { | ||
connection 'scm:git:https://github.com/noheltcj/RxCommon' | ||
developerConnection 'scm:git:https://github.com/noheltcj/RxCommon' | ||
url 'https://github.com/noheltcj/RxCommon' | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'MIT' | ||
url 'https://github.com/noheltcj/RxCommon/blob/master/LICENSE' | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id 'noheltcj' | ||
name 'Colton Nohelty' | ||
email '[email protected]' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -7,6 +7,5 @@ class CommonTest { | |
@Test | ||
fun randomTest() { | ||
assertEquals(1, 1) | ||
println("ran") | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,14 +2,89 @@ plugins { | |
id 'kotlin-platform-js' version '1.2.60' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
expectedBy project(":common") | ||
|
||
compile "org.jetbrains.kotlin:kotlin-stdlib-js" | ||
|
||
testCompile "org.jetbrains.kotlin:kotlin-test-js" | ||
} | ||
|
||
|
||
group = project_group_id | ||
version = project_version | ||
archivesBaseName = 'rx-common-js' | ||
|
||
apply { | ||
plugin 'signing' | ||
plugin 'maven' | ||
} | ||
|
||
task javadocJar(type: Jar) { | ||
classifier = 'javadoc' | ||
from javadoc | ||
} | ||
|
||
task sourcesJar(type: Jar, dependsOn: classes) { | ||
classifier = "sources" | ||
from sourceSets.main.allSource | ||
} | ||
|
||
signing { | ||
if (upload_artifacts) { | ||
sign configurations.archives | ||
} | ||
} | ||
|
||
artifacts { | ||
archives sourcesJar, javadocJar, jar | ||
} | ||
|
||
uploadArchives { | ||
if (upload_artifacts) { | ||
repositories { | ||
mavenDeployer { | ||
beforeDeployment { | ||
MavenDeployment deployment -> signing.signPom(deployment) | ||
} | ||
|
||
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") { | ||
authentication(userName: ossrhUsername, password: ossrhPassword) | ||
} | ||
|
||
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots") { | ||
authentication(userName: ossrhUsername, password: ossrhPassword) | ||
} | ||
|
||
pom.project { | ||
name project.name | ||
packaging 'jar' | ||
|
||
description "A multiplatform ReactiveX partial implementation." | ||
url 'https://github.com/noheltcj/RxCommon' | ||
|
||
scm { | ||
connection 'scm:git:https://github.com/noheltcj/RxCommon' | ||
developerConnection 'scm:git:https://github.com/noheltcj/RxCommon' | ||
url 'https://github.com/noheltcj/RxCommon' | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'MIT' | ||
url 'https://github.com/noheltcj/RxCommon/blob/master/LICENSE' | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id 'noheltcj' | ||
name 'Colton Nohelty' | ||
email '[email protected]' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -2,10 +2,6 @@ plugins { | |
id 'kotlin-platform-jvm' version '1.2.60' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
expectedBy project(":common") | ||
|
||
|
@@ -24,4 +20,82 @@ compileTestKotlin { | |
kotlinOptions.jvmTarget = "1.8" | ||
} | ||
|
||
sourceCompatibility = "1.8" | ||
sourceCompatibility = "1.8" | ||
|
||
group = project_group_id | ||
version = project_version | ||
archivesBaseName = "rx-common-jvm" | ||
|
||
apply { | ||
plugin 'signing' | ||
plugin 'maven' | ||
} | ||
|
||
task javadocJar(type: Jar) { | ||
classifier = 'javadoc' | ||
from javadoc | ||
} | ||
|
||
task sourcesJar(type: Jar, dependsOn: classes) { | ||
classifier = "sources" | ||
from sourceSets.main.allSource | ||
} | ||
|
||
signing { | ||
if (upload_artifacts) { | ||
sign configurations.archives | ||
} | ||
} | ||
|
||
artifacts { | ||
archives sourcesJar, javadocJar, jar | ||
} | ||
|
||
uploadArchives { | ||
if (upload_artifacts) { | ||
repositories { | ||
mavenDeployer { | ||
beforeDeployment { | ||
MavenDeployment deployment -> signing.signPom(deployment) | ||
} | ||
|
||
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") { | ||
authentication(userName: ossrhUsername, password: ossrhPassword) | ||
} | ||
|
||
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots") { | ||
authentication(userName: ossrhUsername, password: ossrhPassword) | ||
} | ||
|
||
pom.project { | ||
name project.name | ||
packaging 'jar' | ||
|
||
description "A multiplatform ReactiveX partial implementation." | ||
url 'https://github.com/noheltcj/RxCommon' | ||
|
||
scm { | ||
connection 'scm:git:https://github.com/noheltcj/RxCommon' | ||
developerConnection 'scm:git:https://github.com/noheltcj/RxCommon' | ||
url 'https://github.com/noheltcj/RxCommon' | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'MIT' | ||
url 'https://github.com/noheltcj/RxCommon/blob/master/LICENSE' | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id 'noheltcj' | ||
name 'Colton Nohelty' | ||
email '[email protected]' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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