-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
104 lines (74 loc) · 2.78 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
apply plugin: 'distribution'
apply from: "./libraries.gradle"
apply plugin: "eclipse"
allprojects {
apply plugin: 'maven'
group = 'org.aksw.sparqlmap'
version = '0.6.3-snapshot'
buildDir = "target"
}
ext{
sourceCompatibility = 1.7
targetCompatibility = 1.7
}
subprojects { subproject ->
if( subproject.name == 'sparqlmap-webfrontend')
return;
apply plugin: 'java'
apply plugin: 'eclipse'
repositories {
mavenLocal()
maven { url "http://repo.maven.apache.org/maven2" }
maven { url "http://download.java.net/maven/2/" }
maven { url "https://repository.apache.org/content/repositories/releases/" }
maven { url "http://maven.aksw.org/archiva/repository/internal" }
maven { url "http://maven.aksw.org/archiva/repository/snapshots" }
}
configurations{
provided {
description = "Libraries that are expected to be there"
}
web{
description = "Libs for the webservices"
}
jetty{
description = "Libs that make a jetty run"
}
dbs{
}
}
dependencies {
testCompile libraries.junit
}
}
distributions {
main {
baseName = 'sparqlmap-release'
contents {
from project.file('README.md')
into ("bin") {
from "./sparqlmap-shared/src/main/resources/scripts/sparqlmap-web"
filter{ String line ->
line.replaceAll("@@@sparqlmapwar@@@", "${project('sparqlmap-web' ).war.archiveName}").replaceAll("@@@jettyrunner@@@",project( 'sparqlmap-web' ).configurations.jetty.files.iterator().next().name)
}
}
into("bin") {from "./sparqlmap-shared/src/main/resources/scripts/sparqlmap"}
into("samples/mappings/") {from "./sparqlmap-shared/src/main/resources/mappings/"}
into("samples/configs/") {from "./sparqlmap-shared/src/main/resources/samples/"}
into("lib/deps") { from project( 'sparqlmap-cli' ).configurations.runtime{dep -> !dep.name.startsWith("sparqlmap")}}
into("lib/deps") { from project( 'sparqlmap-web' ).configurations.runtime{dep -> !dep.name.startsWith("sparqlmap")}}
into("lib/sparqlmap") {from project('sparqlmap-cli').configurations.archives.allArtifacts.files}
into("lib/sparqlmap") {from project('sparqlmap-core').configurations.archives.allArtifacts.files}
into("lib/war") { from project( 'sparqlmap-web' ).configurations.archives.allArtifacts.files }
into("lib/jetty") { from project( 'sparqlmap-web' ).configurations.jetty }
into("lib/db") { from project( 'sparqlmap-core' ).configurations.dbs}
}
}
}
task printpath << {
println "------------"
// println project( 'sparqlmap-web' ).configurations.jetty.metaClass.methods*.name.sort().unique()
println project( 'sparqlmap-web' ).configurations.jetty.files.iterator().next().name
// println project( 'sparqlmap-web' ).configurations.jetty.artifacts.dump()
println "------------"
}