-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
79 lines (66 loc) · 2.34 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
plugins {
id 'java'
}
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile project(':jpf-core')
}
apply from: "gradle/source-sets.gradle"
apply from: "gradle/build-resources.gradle"
ext.manifestCommonAttrbutes = manifest {
attributes(
"Built-By": System.getProperty("user.name"),
"Implementation-Vendor": "NASA Ames Research Center",
"Implementation-Version": version
)
}
task compile {
group = "JPF Build"
description = "Compiles all JPF core sources."
// These are automatic generated tasks from the Java Gradle Plugin.
// Gradle is able to infer the order of the source sets
// due to the compileClasspath attribute
dependsOn compileTestJava
dependsOn compileExamplesJava
}
task createRunJpfJar(type: Jar) {
archiveName = "RunJPF.jar"
destinationDir = file("${buildDir}")
description = "Creates the ${archiveName} file."
group = "JPF Jars"
dependsOn compile
dependsOn copyResources
from(sourceSets.main.java.outputDir) {
include "gov/nasa/jpf/tool/Run.class"
include "gov/nasa/jpf/tool/RunJPF.class"
include "gov/nasa/jpf/Config.class"
include "gov/nasa/jpf/ConfigChangeListener.class"
include "gov/nasa/jpf/Config\$MissingRequiredKeyException.class"
include "gov/nasa/jpf/JPFClassLoader.class"
include "gov/nasa/jpf/JPFShell.class"
include "gov/nasa/jpf/JPFException.class"
include "gov/nasa/jpf/JPFConfigException.class"
include "gov/nasa/jpf/JPFTargetException.class"
include "gov/nasa/jpf/util/JPFSiteUtils.class"
include "gov/nasa/jpf/util/FileUtils.class"
include "gov/nasa/jpf/util/StringMatcher.class"
include "gov/nasa/jpf/util/Pair.class"
include "gov/nasa/jpf/SummaryCreator.class"
include "gov/nasa/jpf/SummaryContainer.class"
include "gov/nasa/jpf/MethodContext.class"
include "gov/nasa/jpf/MethodSummary.class"
include "gov/nasa/jpf/MethodModifications.class"
}
manifest {
attributes(
"Implementation-Title": "Java Pathfinder core launch system",
"Main-Class": "gov.nasa.jpf.tool.RunJPF"
)
from manifestCommonAttrbutes
}
}