Skip to content

Commit 8a2e7f0

Browse files
committed
add ivy publish incubator plugin but using this url "${rootProject.buildDir}/repo"
1 parent 6b22f6c commit 8a2e7f0

File tree

1 file changed

+56
-53
lines changed

1 file changed

+56
-53
lines changed

build.gradle

+56-53
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
allprojects {
2+
apply plugin: 'java'
23
apply plugin: 'maven'
34
apply plugin: 'eclipse'
45
apply plugin: 'idea'
6+
apply plugin: 'ivy-publish'
7+
58

69
group = 'org.reactivestreams'
710
version = '0.4.0'
@@ -10,9 +13,6 @@ allprojects {
1013
gradle.projectsEvaluated {
1114
tasks.withType(JavaCompile) {
1215
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
13-
<<<<<<< HEAD
14-
options.encoding = 'UTF-8'
15-
=======
1616
options.encoding = 'UTF-8'
1717
}
1818

@@ -26,82 +26,85 @@ allprojects {
2626
linkSource true
2727
noTimestamp true
2828
}
29-
>>>>>>> 30c2b95d5bf72c6e57030924d3179920257f96d2
3029
}
3130
}
3231

3332
uploadArchives {
34-
repositories.mavenDeployer {
33+
34+
repositories {
35+
36+
mavenDeployer {
3537

36-
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2")
38+
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2")
3739

38-
pom.project {
39-
name 'org.reactivestreams'
40-
packaging 'jar'
41-
url 'http://www.reactive-streams.org/'
42-
inceptionYear '2014'
40+
pom.project {
41+
name 'org.reactivestreams'
42+
packaging 'jar'
43+
url 'http://www.reactive-streams.org/'
44+
inceptionYear '2014'
4345

44-
scm {
45-
url '[email protected]:reactive-streams/reactive-streams.git'
46-
connection 'scm:git:[email protected]:reactive-streams/reactive-streams.git'
47-
}
46+
scm {
47+
url '[email protected]:reactive-streams/reactive-streams.git'
48+
connection 'scm:git:[email protected]:reactive-streams/reactive-streams.git'
49+
}
4850

49-
licenses {
50-
license {
51-
name 'CC0'
52-
url 'http://creativecommons.org/publicdomain/zero/1.0/'
53-
distribution 'repo'
51+
licenses {
52+
license {
53+
name 'CC0'
54+
url 'http://creativecommons.org/publicdomain/zero/1.0/'
55+
distribution 'repo'
56+
}
5457
}
55-
}
5658

57-
developers {
58-
developer {
59-
id 'reactive-streams-sig'
60-
name 'Reactive Streams SIG'
61-
url 'http://www.reactive-streams.org/'
59+
developers {
60+
developer {
61+
id 'reactive-streams-sig'
62+
name 'Reactive Streams SIG'
63+
url 'http://www.reactive-streams.org/'
64+
}
6265
}
6366
}
6467
}
68+
69+
}
70+
}
71+
repositories {
72+
mavenLocal()
73+
mavenCentral()
74+
}
75+
76+
publishing {
77+
repositories {
78+
ivy {
79+
// change to point to your repo, e.g. http://my.org/repo
80+
url "${rootProject.buildDir}/repo"
81+
}
82+
}
83+
publications {
84+
ivy(IvyPublication) {
85+
from components.java
86+
descriptor.withXml {
87+
asNode().info[0].appendNode('description', description)
88+
}
89+
}
6590
}
6691
}
6792
}
6893

69-
7094
subprojects {
71-
<<<<<<< HEAD
72-
apply plugin: 'java'
73-
sourceCompatibility = 1.6
74-
targetCompatibility = 1.6
95+
sourceCompatibility = 1.6
96+
targetCompatibility = 1.6
7597

76-
compileJava.options.encoding = 'UTF-8'
98+
compileJava.options.encoding = 'UTF-8'
7799

78-
javadoc {
100+
javadoc {
79101
destinationDir = file("build/docs/java/api")
80102
options.encoding = 'UTF-8'
81-
}
82-
repositories {
83-
mavenLocal()
84-
mavenCentral()
85-
}
103+
}
86104
}
87105

88106
project(':reactive-streams-tck') {
89107
dependencies {
90108
compile project(':reactive-streams-api')
91-
=======
92-
apply plugin: 'java'
93-
sourceCompatibility = 1.6
94-
targetCompatibility = 1.6
95-
96-
compileJava.options.encoding = 'UTF-8'
97-
98-
javadoc {
99-
destinationDir = file("build/docs/java/api")
100-
options.encoding = 'UTF-8'
101-
}
102-
repositories {
103-
mavenLocal()
104-
mavenCentral()
105-
>>>>>>> 30c2b95d5bf72c6e57030924d3179920257f96d2
106109
}
107110
}

0 commit comments

Comments
 (0)