This repository has been archived by the owner on Nov 5, 2021. It is now read-only.
forked from truemped/heritrix-rest-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
79 lines (66 loc) · 1.5 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
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'ivy-publish'
apply plugin: 'publishing'
sourceCompatibility = 1.7
version = "1.0-SNAPSHOT"
group = "com.github.truemped.heritrix"
archivesBaseName = "heritrix-rest-client"
jar.baseName = archivesBaseName
task sourceJar(type: Jar) {
from sourceSets.main.java
classifier "sources"
}
artifacts {
archives(sourceJar){
type "sources"
}
}
// for publishing to an ivy repository
publishing {
publications {
ivyJava (IvyPublication) {
organisation 'com.github.truemped.heritrix'
module 'heritrix-rest-client'
revision '1.0-SNAPSHOT'
from components.java
artifact (sourceJar) {
type 'sources'
conf 'dev'
}
configurations {
dev {
extend 'runtime'
}
}
}
}
repositories {
ivy {
// change to point to your repo, e.g. http://my.org/repo
url "${rootProject.buildDir}/repo"
}
}
}
jar {
manifest {
attributes 'Implementation-Title': 'Heritrix Rest Client', 'Implementation-Version': version
}
}
repositories {
mavenCentral()
}
dependencies {
compile 'org.apache.httpcomponents:httpclient:4.0.1'
compile 'org.apache.httpcomponents:httpcore:4.0.1'
compile 'commons-lang:commons-lang:2.6'
compile 'commons-io:commons-io:2.4'
compile 'org.slf4j:slf4j-api:1.7.9'
testCompile 'org.slf4j:slf4j-simple:1.7.9'
testCompile group: 'junit', name: 'junit', version: '4.+'
}
model {
tasks.generateDescriptorFileForIvyJavaPublication {
destination = file("$buildDir/generated-ivy.xml")
}
}