-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
74 lines (63 loc) · 1.5 KB
/
build.gradle
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
import static java.lang.System.getenv;
subprojects {
group = "com.leaprnd.migrannotate"
version = "1.0.9"
apply plugin: "java-library"
repositories {
mavenCentral()
}
task sourcesJar(type: Jar) {
archiveClassifier = "sources"
from sourceSets.main.allSource
}
task javadocJar(type: Jar) {
archiveClassifier = "javadoc"
from tasks.javadoc.destinationDir
}
apply plugin: "maven-publish"
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = "Migrannotate"
description = "Version control your database schema using Java annotations"
url = "https://github.com/LeapRnD/Migrannotate"
licenses {
license {
name = "Apache-2.0"
url = "https://opensource.org/licenses/Apache-2.0"
}
}
developers {
developer {
name = "Ryan Holdren"
email = "[email protected]"
}
}
scm {
connection = "scm:git:git://github.com/LeapRnD/Migrannotate.git"
developerConnection = "scm:git:ssh://github.com/LeapRnD/Migrannotate.git"
url = "https://github.com/LeapRnD/Migrannotate.git"
}
}
}
}
repositories {
maven {
name = "OSSRH"
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = getenv("MAVEN_CENTRAL_USERNAME")
password = getenv("MAVEN_CENTRAL_PASSWORD")
}
}
}
}
apply plugin: "signing"
signing {
sign publishing.publications
}
}