This repository was archived by the owner on May 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle
More file actions
75 lines (60 loc) · 1.39 KB
/
Copy pathbuild.gradle
File metadata and controls
75 lines (60 loc) · 1.39 KB
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
buildscript {
repositories {
mavenCentral()
maven { url 'https://oss.sonatype.org/content/groups/public' }
}
dependencies {
classpath 'com.github.townsfolk:gradle-release:1.2'
}
}
task wrapper(type: Wrapper) {
gradleVersion = '1.12'
}
apply plugin: 'release'
allprojects {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'
apply plugin: 'idea'
sourceCompatibility = 1.8
targetCompatibility = 1.8
// UTF-8 should be standard by now. So use it!
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
group = 'org.ardverk.patricia-trie'
repositories {
mavenCentral()
mavenLocal()
}
//configurations {
// all*.exclude group: 'commons-logging', module: 'commons-logging'
// all*.exclude group: 'log4j', module: 'log4j'
// all*.exclude group: 'junit', module: 'junit'
// deployerJars
//}
project.ext {
releaseRepositoryUrl = ''
snapshotRepositoryUrl = ''
}
//test {
// useTestNG()
//}
}
dependencies {
testCompile 'junit:junit:4.8.2'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: project.releaseRepositoryUrl)
snapshotRepository(url: project.snapshotRepositoryUrl)
}
}
}
createReleaseTag.dependsOn ':uploadArchives'