-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
53 lines (40 loc) · 1.25 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
task wrapper(type: Wrapper) { gradleVersion = '2.12' }
buildscript {
repositories { jcenter() }
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.7.6'
}
}
apply from: "${rootProject.rootDir}/gradle/publish.gradle"
apply from: "${rootProject.rootDir}/gradle/bintray.gradle"
subprojects {
apply plugin: 'java'
apply plugin: 'com.google.protobuf'
apply plugin: 'eclipse'
sourceCompatibility = 1.8
group = 'de.peger.steamkit'
version = '1.0.2'
repositories { mavenCentral() }
dependencies { compile 'com.google.protobuf:protobuf-java:3.0.0-beta-2' }
protobuf {
protoc { artifact = 'com.google.protobuf:protoc:3.0.0-beta-2' }
}
jar {
exclude '**/*.proto'
manifest.attributes provider: 'Daniel H. Peger'
}
task sourceJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allJava
from protobuf.generatedFilesBaseDir + '/main/java'
}
task protoJar(type: Jar) {
classifier = 'protobuf'
from sourceSets.main.proto
}
artifacts {
archives sourceJar
archives protoJar
}
}