-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
76 lines (64 loc) · 2.28 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
buildscript {
repositories {
mavenCentral()
maven {
// The google mirror is less flaky than mavenCentral()
url "https://maven-central.storage-download.googleapis.com/maven2/"
}
}
dependencies {
classpath "com.google.protobuf:protobuf-gradle-plugin:${protobufGradleVersion}"
}
}
plugins {
id 'com.google.protobuf' version "${protobufGradleVersion}" apply false
id 'com.github.johnrengelman.shadow' version "${shadowVersion}" apply false
}
allprojects {
repositories {
mavenLocal()
maven {
url "https://maven-central.storage-download.googleapis.com/maven2/"
}
mavenCentral()
}
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'jacoco'
apply plugin: 'maven-publish'
apply plugin: 'com.google.protobuf'
dependencies {
implementation group: 'javax.annotation', name: 'javax.annotation-api', version: "${javaxannotationVersion}"
implementation group: 'com.google.protobuf', name: 'protobuf-java-util', version: "${protobufVersion}"
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
implementation "io.grpc:grpc-stub:${grpcVersion}"
implementation "org.slf4j:slf4j-api:${slf4jVersion}"
implementation "org.slf4j:slf4j-simple:${slf4jVersion}"
testImplementation "junit:junit:${junitVersion}"
testImplementation group: 'org.mockito', name: 'mockito-core', version: "${mockitoVersion}"
testImplementation group: 'org.mockito', name: 'mockito-inline', version: "${mockitoVersion}"
}
jacocoTestReport {
reports {
xml.required = true
html.required = false
csv.required = false
}
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/oscar-besga-panel/LockFactoryServer")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}
}
group 'org.obapanel.lockfactoryserver'
version "${projectVersion}"
sourceCompatibility = "${javaVersion}"
targetCompatibility = "${javaVersion}"