-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
76 lines (66 loc) · 1.82 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
buildscript {
repositories { maven { url 'https://plugins.gradle.org/m2/' } }
dependencies {
classpath 'com.netflix.nebula:nebula-dependency-recommender:5.1.0'
classpath 'com.netflix.nebula:nebula-publishing-plugin:17.3.2'
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:4.29.2'
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.18'
}
}
allprojects {
apply plugin: 'eclipse'
apply plugin: 'nebula.dependency-recommender'
apply plugin: "nebula.maven-publish"
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.artifactory'
repositories {
jcenter()
maven {
url 'https://oss.jfrog.org/artifactory/oss-snapshot-local/'
}
maven {
url 'https://jitpack.io'
}
maven {
url 'https://artifactory.internal.synopsys.com/artifactory/jcenter-cache'
}
}
dependencyRecommendations {
strategy OverrideTransitives
propertiesFile file: file("$rootDir/dependencies.properties")
}
}
ext {
productionBuild = System.properties['productionBuild'] == 'true' ? true : false
uploadRepoKey = System.properties['uploadRepoKey'] ?: 'bds-bdio-snapshot'
buildName = 'bdio'
}
subprojects {
apply plugin: 'java'
apply plugin: 'nebula.source-jar'
sourceCompatibility = JavaVersion.VERSION_1_8
tasks.withType(JavaCompile) {
options.compilerArgs << '-Xlint:all'
}
tasks.withType(AbstractArchiveTask) {
preserveFileTimestamps = false
reproducibleFileOrder = true
}
jar {
manifest {
attributes('Implementation-Title': "${-> project.description}",
'Implementation-Version': "${-> project.version}",
'Specification-Title': specTitle,
'Specification-Version': specVersion,
'Specification-Vendor': specVendor)
}
}
publishing{
publications{
maven(MavenPublication){
from components.java
artifact sourceJar
}
}
}
}