Skip to content

Commit ff089c5

Browse files
committed
for first release in maven central
1 parent 5e14b04 commit ff089c5

File tree

2 files changed

+80
-2
lines changed

2 files changed

+80
-2
lines changed

build.gradle

Lines changed: 79 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
apply plugin: 'java'
2+
apply plugin: 'maven'
3+
apply plugin: 'signing'
24

35
sourceCompatibility = 1.7
46
targetCompatibility = 1.7
5-
version = '1.0'
7+
group = 'com.medallia.word2vec'
8+
version = '0.9.0'
69

710
repositories {
811
mavenCentral()
@@ -18,3 +21,78 @@ dependencies {
1821
testCompile group: 'junit', name: 'junit', version: '4.11'
1922
}
2023

24+
task javadocJar(type: Jar) {
25+
classifier = 'javadoc'
26+
from javadoc
27+
}
28+
29+
task sourcesJar(type: Jar) {
30+
classifier = 'sources'
31+
from sourceSets.main.allSource
32+
}
33+
34+
artifacts {
35+
archives javadocJar, sourcesJar
36+
}
37+
38+
signing {
39+
sign configurations.archives
40+
}
41+
42+
uploadArchives {
43+
repositories {
44+
mavenDeployer {
45+
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
46+
47+
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
48+
authentication(userName: "yibin", password: "*****")
49+
}
50+
51+
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
52+
authentication(userName: "yibin", password: "*****")
53+
}
54+
55+
pom.project {
56+
name 'Word2VecJava'
57+
packaging 'jar'
58+
description 'Word2Vec Java Port'
59+
url 'https://github.com/medallia/Word2VecJava'
60+
61+
scm {
62+
connection 'scm:git:git@github.com:medallia/Word2VecJava.git'
63+
developerConnection 'scm:git:git@github.com:medallia/Word2VecJava.git'
64+
url 'https://github.com/medallia/Word2VecJava.git'
65+
}
66+
67+
licenses {
68+
license {
69+
name 'The MIT License'
70+
url 'http://opensource.org/licenses/MIT'
71+
}
72+
}
73+
74+
developers {
75+
developer {
76+
id 'wko'
77+
name 'Andrew Ko'
78+
email 'wko@medallia.com'
79+
}
80+
developer {
81+
id 'yibinlin'
82+
name 'Yibin Lin'
83+
email 'yibin@medallia.com'
84+
}
85+
developer {
86+
id 'yfpeng'
87+
name 'Yifan Peng'
88+
email 'yfpeng@udel.edu'
89+
}
90+
developer {
91+
id 'guerda'
92+
name 'Philip Gillißen'
93+
}
94+
}
95+
}
96+
}
97+
}
98+
}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.medallia.word2vec</groupId>
55
<artifactId>medallia-word2vec</artifactId>
6-
<version>1.0.0</version>
6+
<version>0.9.0</version>
77
<licenses>
88
<license>
99
<name>MIT License</name>

0 commit comments

Comments
 (0)