-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
48 lines (38 loc) · 1.14 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
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'
apply plugin: 'code-quality'
version = '1.0.7-SNAPSHOT'
group = 'pl.solr.swork'
checkstyleConfigFileName = rootProject.file('checkstyle.xml')
repositories {
mavenLocal()
mavenCentral()
mavenRepo urls: ['file://' + (rootProject.file('lib')).getPath().replace('\\', '/')]
}
dependencies {
compile 'log4j:log4j:1.2.16'
compile 'org.slf4j:slf4j-api:1.5.6'
compile 'org.slf4j:slf4j-log4j12:1.5.6'
compile 'com.google.guava:guava:r09'
testCompile 'org.mockito:mockito-core:1.8.5'
testCompile 'org.springframework:spring-test:3.0.5.RELEASE'
testCompile 'junit:junit:4.8.2'
}
task sourcesJar(type: Jar, dependsOn:classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn:javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
uploadArchives {
repositories.mavenDeployer {
repository(url: "file://localhost/home/negativ/Projekty/Dom/GitHub/maven-repository/")
}
}