-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.gradle
86 lines (68 loc) · 2.08 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
apply plugin: 'base'
def VERSION = '0.2.4-SNAPSHOT'
allprojects { project ->
// --------------------------------
// Increment version for deployment
// --------------------------------
version = '$VERSION'
apply plugin: 'eclipse'
apply plugin: 'idea'
repositories {
maven { url 'http://repo1.maven.org/maven2/' }
maven { url 'http://www.ibiblio.org/maven2/' }
flatDir { dirs "${project.rootDir}/lib/" }
}
buildscript {
repositories {
maven { url 'http://repo1.maven.org/maven2/' }
maven { url 'http://www.ibiblio.org/maven2/' }
maven { url "${project.rootDir}/lib" }
}
}
}
def javaProjects = [':core',
':dao',
':domain',
':tx',
':tx-guice'
].collect { project it };
configure (javaProjects) { project ->
//apply plugin: 'checkstyle'
//apply plugin: 'findbugs'
apply plugin: 'java'
apply plugin: 'maven-publish'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
dependencies {
testCompile 'org.testng:testng:6.1.1'
compile "com.google.code.findbugs:jsr305:1.3.9",
"postgresql:postgresql:8.3-603.jdbc4",
'org.slf4j:slf4j-api:1.5.10'
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
publishing {
publications {
jar(MavenPublication) {
from components.java
groupId 'com.freiheit'
artifactId "sqlapi4j-${project.name}"
version "${VERSION}"
}
source(MavenPublication) {
from components.java
groupId 'com.freiheit'
artifactId "sqlapi4j-${project.name}"
version "${VERSION}"
artifact sourceJar {
classifier "sources"
}
}
}
repositories {
maven {
url "${project.rootDir}/build"
}
}
}
}