This repository has been archived by the owner on Apr 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
102 lines (88 loc) · 2.58 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
plugins {
id 'org.gradle.wrapper'
id 'com.fizzpod.sweeney' version '2.1.2'
id 'org.gradle.java'
id 'org.gradle.war'
id 'com.ewerk.gradle.plugins.annotation-processor' version '1.0.4'
id 'com.ewerk.gradle.plugins.artifactory-deb-publish' version '1.0.2'
id 'com.ewerk.gradle.plugins.auto-value' version '1.0.7'
id 'com.ewerk.gradle.plugins.integration-test' version '1.0.9'
id 'com.ewerk.gradle.plugins.querydsl' version '1.0.9'
id 'com.ewerk.gradle.plugins.dagger' version '1.0.4'
id 'com.ewerk.gradle.plugins.jaxb2' version '1.0.8'
}
sweeney {
enforce type: 'jdk', expect: '[1.8, 1.8]'
}
wrapper {
gradleVersion = '4.3.1'
}
repositories {
jcenter()
}
dependencies {
compile "org.slf4j:slf4j-api:$slf4jVersion"
compile "org.slf4j:slf4j-simple:$slf4jVersion"
compile "org.hibernate.javax.persistence:hibernate-jpa-2.1-api:$persistenceApiVersion"
compile "org.springframework.data:spring-data-mongodb:$springDataMongoVersion"
compile "org.mongodb.morphia:morphia:$morphiaVersion"
compile "com.querydsl:querydsl-mongodb:$querydslVersion"
testCompile "org.testng:testng:$testNgVersion"
testCompile "org.assertj:assertj-core:$assertjVersion"
providedRuntime "javax.validation:validation-api:$validationVersion"
}
annotationProcessor {
library "com.querydsl:querydsl-apt:$querydslVersion"
processor 'com.querydsl.apt.morphia.MorphiaAnnotationProcessor'
sourcesDir 'src/morphia/java'
}
autoValue {
library = "com.google.auto.value:auto-value:$autoValueVersion"
autoValueSourcesDir = 'src/autoValue/java'
}
querydsl {
library = "com.querydsl:querydsl-apt:$querydslVersion"
querydslSourcesDir = 'src/querydsl/java'
jpa = true
jdo = false
hibernate = false
morphia = false
roo = false
springDataMongo = true
querydslDefault = true
}
dagger {
library = "com.google.dagger:dagger:$dagger2Version"
processorLibrary = "com.google.dagger:dagger-compiler:$dagger2Version"
daggerSourcesDir = 'src/dagger/java'
}
artifactoryDebPublish {
baseUrl = 'https://artifactory.company.com'
user = 'a.user'
password = '***'
repoKey = 'debian-snapshots'
distribution = 'jessie'
component = 'non-free'
arch = 'amd64'
archive = file('src/main/resources/helloworld_1.0_amd64.deb')
}
jaxb2 {
xjc {
'model-classes' {
basePackage = 'com.ewerk.gradle.plugins.sample'
schema = 'src/main/xsd/model.xsd'
bindingsDir = 'src/main/xsd'
includedBindingFiles = 'model.xjb'
encoding = 'UTF-8'
additionalArgs = ['-XtoString']
}
}
}
test {
useTestNG()
maxHeapSize = '128m'
}
integrationTest {
useTestNG()
maxHeapSize = '128m'
}