forked from shilpa15/finflux-cassandra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
99 lines (81 loc) · 2.49 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'net.ltgt.gradle:gradle-apt-plugin:0.21'
}
}
plugins {
id("org.nosphere.apache.rat") version "0.3.1"
}
group 'com.finflux'
version '0.1.0'
ext.versions = [
springcontext : '5.1.8.RELEASE',
springboot : '1.5.21.RELEASE',
findbugs : '3.0.1',
frameworklang : '0.1.0-BUILD-SNAPSHOT',
cassandraVersion : '4.1.0',
lombokVersion : '1.18.2'
]
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: "net.ltgt.apt-eclipse"
apply plugin: 'maven'
apply plugin: 'maven-publish'
tasks.withType(JavaCompile) {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
repositories {
jcenter()
mavenLocal()
}
dependencies {
compile(
[group: 'org.springframework', name: 'spring-context', version: versions.springcontext],
[group: 'com.google.code.findbugs', name: 'jsr305', version: versions.findbugs],
[group: 'com.datastax.oss', name: 'java-driver-core', version: versions.cassandraVersion],
[group: 'com.datastax.oss', name: 'java-driver-mapper-runtime', version: versions.cassandraVersion],
[group: 'com.datastax.oss', name: 'java-driver-query-builder', version: versions.cassandraVersion],
[group: 'ch.qos.logback', name: 'logback-core', version: '1.2.3']
)
compileOnly(
[group: 'org.projectlombok', name: 'lombok', version: versions.lombokVersion]
)
annotationProcessor(
[group: 'org.projectlombok', name: 'lombok', version: versions.lombokVersion],
[group: 'com.datastax.oss', name: 'java-driver-mapper-processor', version: versions.cassandraVersion]
)
testCompile(
[group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: versions.springboot]
)
}
publishing {
publications {
cassandraPublication(MavenPublication) {
from components.java
groupId project.group
artifactId project.name
version project.version
}
}
}
jar {
from sourceSets.main.allSource
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
rat {
// List of exclude directives, defaults to ['**/.gradle/**']
excludes = [
".idea/**",
".gradle/**",
"gradle/**",
"build/**",
"gradlew",
"gradlew.bat",
"README.md"
]
}