-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
56 lines (46 loc) · 1.39 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
// for using the local installation of the plugin
//buildscript {
// repositories {
// mavenLocal()
// mavenCentral() // for transitive dependencies
// }
// dependencies {
// classpath "org.frege-lang:frege-gradle-plugin:0.8-SNAPSHOT"
// }
//}
// use for fetching the plugin from plugin portal
buildscript {
repositories {
jcenter() // needed for fregeDoc atm
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "gradle.plugin.org.frege-lang:frege-gradle-plugin:0.8"
classpath "org.apache.commons:commons-io:1.3.2" // needed for fregeDoc atm
}
}
ant.mkdir(dir: "${rootProject.projectDir}/lib/org/frege-lang/frege/${fregeVersion}")
ant.get(src: "https://github.com/Frege/frege/releases/download/${fregeRelease}/frege${fregeVersion}.jar",
dest: "${rootProject.projectDir}/lib/org/frege-lang/frege//${fregeVersion}/frege-${fregeVersion}.jar",
skipexisting: 'true')
subprojects { subproject ->
subproject.apply plugin: 'org.frege-lang'
sourceCompatibility = 1.8
targetCompatibility = javaTarget
repositories {
mavenLocal()
mavenCentral()
maven { url = "${rootProject.projectDir}/lib" }
}
dependencies {
compile "org.frege-lang:frege:${fregeVersion}"
}
compileFrege {
target = javaTarget
}
compileTestFrege {
target = javaTarget
}
}