-
Notifications
You must be signed in to change notification settings - Fork 29
/
build.gradle
84 lines (72 loc) · 2.2 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
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'spring-boot'
group = 'jthink'
version = '0.0.1'
sourceCompatibility = 1.7
targetCompatibility = 1.7
compileJava.options.encoding = 'UTF-8'
buildDir = 'target'
ext {
mavenPublicUrl = 'http://192.168.88.8:8081/nexus/content/repositories/public'
mavenReleaseUrl = 'http://192.168.88.8:8081/nexus/content/repositories/releases'
mavenSnapshotUrl = 'http://192.168.88.8:8081/nexus/content/repositories/snapshots'
springBootVersion = '1.3.6.RELEASE'
springVersion = '4.2.7.RELEASE'
dubboVersion = '2.8.4-up-1'
slf4jVersion = '1.7.21'
}
repositories {
mavenLocal()
maven { url "https://repository.cloudera.com/artifactory/cloudera-repos" }
maven { url mavenPublicUrl }
maven { url mavenReleaseUrl }
maven { url mavenSnapshotUrl }
mavenCentral()
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: mavenReleaseUrl) {
authentication(userName: 'admin', password: 'admin123')
}
snapshotRepository(url: mavenSnapshotUrl) {
authentication(userName: 'admin', password: 'admin123')
}
}
}
}
dependencies {
compile "org.slf4j:slf4j-api:$slf4jVersion"
compile "org.springframework.boot:spring-boot-autoconfigure:$springBootVersion"
compile "org.springframework:spring-tx:$springVersion"
compile ("com.alibaba:dubbo-config-spring:$dubboVersion")
compile ("com.alibaba:dubbo-registry-zookeeper:$dubboVersion")
compile ("com.alibaba:dubbo-rpc-default:$dubboVersion")
compile ("com.alibaba:dubbo-remoting-netty:$dubboVersion")
compile ("com.alibaba:dubbo-monitor-default:$dubboVersion")
testCompile "junit:junit:4.12"
}
buildscript {
ext {
springBootVersion = '1.3.6.RELEASE'
}
repositories {
mavenLocal()
maven { url "http://192.168.88.8:8081/nexus/content/groups/public" }
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("io.spring.gradle:dependency-management-plugin:0.6.0.RELEASE")
}
}