-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
78 lines (69 loc) · 2.61 KB
/
build.gradle
File metadata and controls
78 lines (69 loc) · 2.61 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
subprojects {
group = 'pl.rtprog'
description="Java classes to JavaScript Flow types converter/generator"
version="0.0.5-SNAPSHOT"
plugins.withType(JavaPlugin) {
task javadocJar(type: Jar) {
archiveClassifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
}
plugins.withType(MavenPublishPlugin) {
// artifacts {
// archives javadocJar, sourcesJar
// }
// if(name=="java2flow-gradle-plugin") return
publishing {
repositories {
maven {
url=version.endsWith('SNAPSHOT')?"https://s01.oss.sonatype.org/content/repositories/snapshots/"
:"https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username= findProperty('ossrhUsername')
password= findProperty('ossrhPassword')
}
}
}
publications {
mavenJava(MavenPublication) {
from(components.java)
artifact sourcesJar
artifact javadocJar
pom {
url = 'https://github.com/Ryszard-Trojnacki/java2flow'
packaging = 'jar'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'ryszard-trojnacki'
name = 'Ryszard Trojnacki'
email = 'ryszard.trojnacki@gmail.com'
}
}
scm {
connection = 'scm:git://github.com/Ryszard-Trojnacki/java2flow.git'
developerConnection = 'scm:git://github.com/Ryszard-Trojnacki/java2flow.git'
url = 'https://github.com/Ryszard-Trojnacki/java2flow'
}
}
}
}
}
}
plugins.withType(SigningPlugin) {
if(findProperty('ossrhUsername')!=null) {
signing {
sign publishing.publications.mavenJava
}
}
}
}