-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle
50 lines (39 loc) · 927 Bytes
/
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
plugins {
id 'maven-publish'
id 'eclipse'
id 'idea'
id 'com.github.johnrengelman.shadow' version '1.2.1'
}
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'eclipse'
apply plugin: 'idea'
group = 'com.gamejolt'
version = '1.0-SNAPSHOT'
sourceCompatibility = 1.7
targetCompatibility = 1.7
dependencies {
compile fileTree(dir: 'lib', include: '*.jar')
}
archivesBaseName = project.name.toLowerCase()
defaultTasks 'clean', 'shadowJar'
shadowJar {
baseName = archivesBaseName + '-all'
classifier = ''
dependencies {
include(dependency(fileTree(dir: 'lib', include: '*.jar')))
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.shadow
artifactId archivesBaseName + '-all'
}
}
repositories {
maven {
url System.getenv('REPO_' + (version.endsWith('-SNAPSHOT') ? 'SNAPSHOTS' : 'RELEASES')) ?: "$buildDir/repo"
}
}
}