forked from SpringForAll/spring-boot-starter-hbase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
82 lines (70 loc) · 2.05 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
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
group = 'com.spring4all'
version = '1.0.0.RELEASE'
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.5.6.RELEASE'
springVersion = '4.3.10.RELEASE'
hbaseVersion = '1.0.0-cdh5.4.4'
slf4jVersion = '1.7.25'
}
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 ("org.apache.hbase:hbase-client:$hbaseVersion") {
exclude group: 'javax.servlet', module: 'servlet-api'
}
testCompile "junit:junit:4.12"
}
buildscript {
ext {
springBootVersion = '1.5.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:1.0.3.RELEASE")
}
}