-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
85 lines (69 loc) · 1.94 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
buildscript {
repositories {
mavenLocal()
maven {
url "https://plugins.gradle.org/m2/"
}
maven {
url = "https://oss.sonatype.org/content/groups/public"
}
mavenCentral()
}
dependencies {
classpath "gradle.plugin.org.frege-lang:frege-gradle-plugin:0.5"
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.5.3"
}
}
apply plugin: 'io.codearte.nexus-staging'
allprojects {
defaultTasks "build"
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
}
subprojects {
def urlFile = { url, name ->
File file = new File("$buildDir/download/${name}.jar")
file.parentFile.mkdirs()
if (!file.exists()) {
new URL(url).withInputStream { downloadStream ->
file.withOutputStream { fileOut ->
fileOut << downloadStream
}
}
}
files(file.absolutePath)
}
apply plugin: "java"
apply plugin: "groovy"
apply plugin: "maven"
apply plugin: "signing"
ext {
baseVersion = "1.3"
isSnapshot = true
snapshotAppendix = "-SNAPSHOT"
projectVersion = baseVersion + (isSnapshot ? snapshotAppendix : "")
fregeReleaseName = "3.24public"
fregeVersion = "3.24.405"
}
apply from: "$rootDir/gradle/sonatype.gradle"
sourceCompatibility = 1.8
targetCompatibility = 1.8
version = projectVersion
group = groupName
archivesBaseName = project.name
repositories {
mavenLocal()
maven {
url = sonatypeRepositoryUrl
}
mavenCentral()
}
dependencies {
compile urlFile("https://github.com/Frege/frege/releases/download/$fregeReleaseName/frege${fregeVersion}.jar", "frege${fregeVersion}")
}
nexusStaging {
packageGroup = groupName
stagingProfileId = "a622b6773bea07"
}
}