-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
104 lines (89 loc) · 2.38 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
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
plugins {
id 'java-library'
id 'maven-publish'
id 'com.github.ben-manes.versions' version '0.27.0'
}
repositories {
mavenCentral()
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
}
group 'io.github.jponge'
version '1.2.2-SNAPSHOT'
compileJava {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
dependencies {
api 'io.vertx:vertx-core:3.9.4'
implementation 'com.typesafe:config:1.4.0'
testImplementation 'io.vertx:vertx-junit5:3.9.4'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
}
jar {
manifest {
attributes(
'Implementation-Title': project.name,
'Implementation-Version': project.version)
}
}
test {
useJUnitPlatform()
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
task javadocJar(type: Jar, dependsOn: javadoc) {
from javadoc.destinationDir
}
publishing {
publications {
vertxBoot(MavenPublication) {
from components.java
artifact sourceJar {
classifier "sources"
}
artifact javadocJar {
classifier 'javadoc'
}
pom {
name = 'Vert.x Boot'
description = 'A Vert.x verticle to boot an application from HOCON configuration.'
url = 'https://github.com/jponge/vertx-boot'
licenses {
license {
name = 'MIT License'
url = 'https://opensource.org/licenses/MIT'
}
}
developers {
developer {
id = 'jponge'
name = 'Julien Ponge'
email = 'julien.ponge@gmail.com'
url = 'https://julien.ponge.org/'
}
}
scm {
connection = 'scm:git:git://github.com/jponge/vertx-boot.git'
developerConnection = 'scm:git:ssh://github.com/jponge/vertx-boot.git'
url = 'https://github.com/jponge/vertx-boot/tree/master'
}
}
}
}
repositories {
maven {
url 'https://api.bintray.com/maven/jponge/vertx-boot/vertx-boot'
credentials {
username project.hasProperty('bintrayRepoUsername') ? bintrayRepoUsername : System.getenv('bintrayRepoUsername')
password project.hasProperty('bintrayRepoPassword') ? bintrayRepoPassword : System.getenv('bintrayRepoPassword')
}
}
}
}
wrapper {
gradleVersion = '6.0'
}