File tree 2 files changed +65
-3
lines changed
2 files changed +65
-3
lines changed Original file line number Diff line number Diff line change 1
1
* .jar
2
2
.idea
3
3
build
4
- .gradle
4
+ .gradle
5
+ gradle.properties
Original file line number Diff line number Diff line change
1
+ apply plugin : ' java'
2
+ apply plugin : ' maven'
3
+ apply plugin : ' signing'
4
+
1
5
group ' cool.graph.cuid-java'
6
+ archivesBaseName = ' cuid-java'
2
7
version ' 0.1.0-SNAPSHOT'
3
8
4
- apply plugin : ' java'
5
-
6
9
repositories {
7
10
mavenCentral()
8
11
}
9
12
10
13
dependencies {
11
14
testCompile group : ' junit' , name : ' junit' , version : ' 4.11'
12
15
}
16
+
17
+ task sourcesJar (type : Jar ) {
18
+ classifier = ' sources'
19
+ from sourceSets. main. allSource
20
+ }
21
+
22
+ artifacts {
23
+ archives sourcesJar
24
+ }
25
+
26
+ signing {
27
+ sign configurations. archives
28
+ }
29
+
30
+ uploadArchives {
31
+ repositories {
32
+ mavenDeployer {
33
+ beforeDeployment { MavenDeployment deployment -> signing. signPom(deployment) }
34
+
35
+ repository(url : " https://oss.sonatype.org/service/local/staging/deploy/maven2/" ) {
36
+ authentication(userName : ossrhUsername, password : ossrhPassword)
37
+ }
38
+
39
+ snapshotRepository(url : " https://oss.sonatype.org/content/repositories/snapshots/" ) {
40
+ authentication(userName : ossrhUsername, password : ossrhPassword)
41
+ }
42
+
43
+ pom. project {
44
+ name ' cuid-java'
45
+ packaging ' jar'
46
+ // optionally artifactId can be defined here
47
+ description ' A application used as an example on how to set up pushing its components to the Central Repository.'
48
+ url ' http://www.example.com/example-application'
49
+
50
+ scm {
51
+ connection ' scm:svn:http://foo.googlecode.com/svn/trunk/'
52
+ developerConnection ' scm:svn:https://foo.googlecode.com/svn/trunk/'
53
+ url ' http://foo.googlecode.com/svn/trunk/'
54
+ }
55
+
56
+ licenses {
57
+ license {
58
+ name ' The Apache License, Version 2.0'
59
+ url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
60
+ }
61
+ }
62
+
63
+ developers {
64
+ developer {
65
+ id ' manfred'
66
+ name ' Manfred Moser'
67
+
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
You can’t perform that action at this time.
0 commit comments