forked from runafterasun/objects-fill-processor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
112 lines (97 loc) · 3.05 KB
/
build.gradle
File metadata and controls
112 lines (97 loc) · 3.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
plugins {
id 'signing'
id 'maven-publish'
id 'java'
}
group 'ru.objectsfill'
version '0.1.1'
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compileOnly 'com.google.auto.service:auto-service:1.1.1'
annotationProcessor 'com.google.auto.service:auto-service:1.1.1'
implementation 'org.javassist:javassist:3.30.2-GA'
implementation "org.apache.commons:commons-lang3:3.12.0"
testImplementation "org.apache.commons:commons-lang3:3.12.0"
}
test {
useJUnitPlatform()
}
tasks.register('sourceJar', Jar) {
from sourceSets.main.allJava
archiveClassifier = "sources"
}
tasks.register('javadocJar', Jar) {
dependsOn javadoc
classifier = 'javadoc'
from javadoc.destinationDir
}
//publishing {
// publications {
// mavenJava(MavenPublication) {
// groupId = 'ru.objectsfill'
// artifactId = 'objects-fill-processor'
// version = "0.1.3"
// from components.java
// }
// }
// repositories {
// mavenLocal()
// }
//}
publishing {
publications {
maven(MavenPublication) {publication ->
artifact sourceJar
artifact javadocJar
artifactId = "objects-fill-processor"
groupId = "ru.objectsfill"
version = "0.1.3"
from(components["java"])
pom {
packaging 'jar'
name.set("Objects Fill Processor")
url.set("https://github.com/runafterasun/objects-fill-processor")
description.set("Fill objects with random values")
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
scm {
connection.set("scm:https://github.com/runafterasun/objects-fill-processor.git")
developerConnection.set("scm:git@github.com:runafterasun/objects-fill-processor.git")
url.set("https://github.com/runafterasun/objects-fill-processor")
}
developers {
developer {
id.set("Stereo")
name.set("Igor Saenko")
email.set("runafterasun@gmail.com")
}
}
}
}
}
repositories {
maven {
URI releasesUrl = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
URI snapshotsUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
if (version.toString().endsWith("SNAPSHOT")) {
url = snapshotsUrl
} else {
url = releasesUrl
}
credentials {
username = project.properties["ossrhUsername"].toString()
password = project.properties["ossrhPassword"].toString()
}
}
}
}
signing {
sign publishing.publications
}