Skip to content

Commit 9289d61

Browse files
authored
Merge pull request #7 from tomtzook/dev
Merging for publication
2 parents 8abb989 + 07a3aec commit 9289d61

12 files changed

+80
-15
lines changed

build.gradle

Lines changed: 65 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
plugins {
22
id 'java'
3+
id 'maven-publish'
4+
id 'signing'
35
}
46

5-
group 'JavaBeans'
6-
version '1.0'
7+
group = GROUP
8+
version = VERSION
9+
10+
def isReleaseBuild() {
11+
return version.contains("SNAPSHOT") == false
12+
}
713

814
sourceCompatibility = 1.8
915

@@ -26,7 +32,61 @@ task createJavadoc(type: Jar, dependsOn: 'javadoc') {
2632
classifier = 'javadoc'
2733
}
2834

29-
artifacts {
30-
archives createSources
31-
archives createJavadoc
35+
publishing {
36+
publications {
37+
mavenJava(MavenPublication) {
38+
from components.java
39+
40+
artifact createJavadoc
41+
artifact createSources
42+
43+
pom {
44+
name = 'jmath'
45+
description = 'Beans for Java'
46+
url = 'https://github.com/tomtzook/JavaBeans'
47+
48+
licenses {
49+
license {
50+
name = 'Apache License 2.0'
51+
url = ' http://www.apache.org/licenses/LICENSE-2.0'
52+
}
53+
}
54+
55+
developers {
56+
developer {
57+
id = 'tomtzook'
58+
name = 'Tom Tzook'
59+
60+
}
61+
}
62+
63+
scm {
64+
connection = 'scm:git:git://github.com/tomtzook/JavaBeans.git'
65+
developerConnection = 'scm:git:ssh://github.com/tomtzook/JavaBeans.git'
66+
url = 'https://github.com/tomtzook/JavaBeans'
67+
}
68+
}
69+
}
70+
}
71+
72+
repositories {
73+
maven {
74+
if (isReleaseBuild()) {
75+
name = 'NexusStaging'
76+
url = NEXUS_RELEASE_REPOSITORY_URL
77+
} else {
78+
name = 'NexusSnapshot'
79+
url = NEXUS_SNAPSHOT_REPOSITORY_URL
80+
}
81+
82+
credentials {
83+
username ''
84+
password ''
85+
}
86+
}
87+
}
88+
}
89+
90+
signing {
91+
sign publishing.publications.mavenJava
3292
}

gradle.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
GROUP = com.flash3388.util
2+
VERSION = 1.0
3+
4+
NEXUS_SNAPSHOT_REPOSITORY_URL=https\://oss.sonatype.org/content/repositories/snapshots
5+
NEXUS_RELEASE_REPOSITORY_URL=https\://oss.sonatype.org/service/local/staging/deploy/maven2
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.beans.observables.properties.concurrent;
1+
package com.beans.observables.properties.atomic;
22

33
import com.beans.observables.properties.ObservableBooleanProperty;
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.beans.observables.properties.concurrent;
1+
package com.beans.observables.properties.atomic;
22

33
import com.beans.observables.properties.ObservableDoubleProperty;
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.beans.observables.properties.concurrent;
1+
package com.beans.observables.properties.atomic;
22

33
import com.beans.observables.properties.ObservableIntProperty;
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.beans.observables.properties.concurrent;
1+
package com.beans.observables.properties.atomic;
22

33
import com.beans.observables.properties.ObservableLongProperty;
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.beans.observables.properties.concurrent;
1+
package com.beans.observables.properties.atomic;
22

33
import com.beans.observables.properties.ObservablePropertyBase;
44

src/main/java/com/beans/properties/concurrent/AtomicBooleanProperty.java renamed to src/main/java/com/beans/properties/atomic/AtomicBooleanProperty.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.beans.properties.concurrent;
1+
package com.beans.properties.atomic;
22

33
import com.beans.properties.BooleanPropertyBase;
44

src/main/java/com/beans/properties/concurrent/AtomicDoubleProperty.java renamed to src/main/java/com/beans/properties/atomic/AtomicDoubleProperty.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.beans.properties.concurrent;
1+
package com.beans.properties.atomic;
22

33
import com.beans.properties.DoublePropertyBase;
44

src/main/java/com/beans/properties/concurrent/AtomicIntProperty.java renamed to src/main/java/com/beans/properties/atomic/AtomicIntProperty.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.beans.properties.concurrent;
1+
package com.beans.properties.atomic;
22

33
import com.beans.properties.IntPropertyBase;
44

0 commit comments

Comments
 (0)