-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
65 lines (53 loc) · 1.44 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
plugins {
id "com.github.hierynomus.license" version "0.15.0"
}
group 'de.johni0702.replay'
version '1.0-SNAPSHOT'
repositories {
jcenter()
}
ext.projectName = 'ReplayRestrictions'
ext.packaging = 'jar'
ext.author = 'johni0702'
ext.authorUrl = 'https://github.com/johni0702'
ext.inceptionYear = '2015'
subprojects {
apply plugin: 'java'
apply plugin: 'license'
apply plugin: 'idea'
apply plugin: 'eclipse'
sourceCompatibility = 1.6
targetCompatibility = 1.6
group = 'de.johni0702.replay'
version = rootProject.version
ext.url = rootProject.authorUrl
license {
ext.name = rootProject.projectName
ext.author = rootProject.author
ext.url = rootProject.authorUrl
ext.year = rootProject.inceptionYear
header new File(rootProject.getProjectDir(), 'HEADER.txt')
sourceSets = project.sourceSets
ignoreFailures false
strictCheck true
mapping("java", "SLASHSTAR_STYLE")
}
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier.set "sources"
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier.set "javadoc"
from javadoc.destinationDir
}
artifacts {
archives jar
archives sourcesJar
archives javadocJar
}
build.dependsOn(sourcesJar)
build.dependsOn(javadocJar)
repositories {
jcenter()
}
}