11apply plugin : ' java'
2+ apply plugin : ' maven'
3+ apply plugin : ' signing'
24
35sourceCompatibility = 1.7
46targetCompatibility = 1.7
5- version = ' 1.0'
7+ group = ' com.medallia.word2vec'
8+ version = ' 0.9.0'
69
710repositories {
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+ }
0 commit comments