-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
75 lines (62 loc) · 1.45 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'io.spring.gradle:dependency-management-plugin:1.0.6.RELEASE'
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4"
}
}
group "ru.jihor.hiatus-spring-boot"
version "2.0.2-SNAPSHOT"
subprojects {
apply plugin: 'io.spring.dependency-management'
apply plugin: 'java'
group rootProject.group
version rootProject.version
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencyManagement {
imports {
mavenBom 'org.springframework.boot:spring-boot-dependencies:2.0.6.RELEASE'
}
dependencies {
dependency 'org.projectlombok:lombok:1.18.2'
}
}
if (project.name != 'demo') {
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
}
publishing {
publications {
toMaven(MavenPublication) {
groupId project.group
artifactId project.name
version project.version
from components.java
artifact sourcesJar {
classifier "sources"
}
}
}
}
bintray {
user = project.hasProperty("user") ? project.property("user") : "fake"
key = project.hasProperty("key") ? project.property("key") : "fake"
publications = ['toMaven']
publish = true
pkg {
repo = 'maven'
name = rootProject.name
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/jihor/hiatus-spring-boot.git'
}
}
}
}