-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
82 lines (69 loc) · 2.11 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
77
78
79
80
81
82
import org.gradle.api.JavaVersion
plugins {
id 'java'
id 'maven-publish'
id 'com.github.davidmc24.gradle.plugin.avro' version '1.3.0'
id "com.google.cloud.artifactregistry.gradle-plugin" version "2.1.4" apply false
}
if (System.getenv("ENABLE_GCP") == "true") {
apply plugin: "com.google.cloud.artifactregistry.gradle-plugin"
}
repositories {
mavenLocal()
mavenCentral()
}
group = 'io.emeraldpay.dshackle.archive'
version = '0.1'
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
dependencies {
implementation 'org.apache.avro:avro:1.11.0'
}
afterEvaluate {
publish.dependsOn(compileJava)
publish.dependsOn(generateAvroJava)
publishToMavenLocal.dependsOn(generateAvroJava)
generateAvroJava.dependsOn(clean)
}
java {
withSourcesJar()
withJavadocJar()
}
publishing {
repositories {
maven {
url "artifactregistry://us-maven.pkg.dev/emeraldpay-prod/maven"
}
}
publications {
EmeraldPublication(org.gradle.api.publish.maven.MavenPublication) {
from components.java
groupId project.group
artifactId project.name
version project.version
pom {
name = 'Dshackle Archive Avro'
description = 'Dshackle Archive Avro Stubs'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = "splix"
name = "Igor Artamonov"
}
}
scm {
connection = 'scm:git:git://github.com/emeraldpay/dshackle-archive-avro.git'
developerConnection = 'scm:git:[email protected]:emeraldpay/dshackle-archive-avro.git'
url = 'https://github.com/emeraldpay/dshackle-archive-avro'
}
}
}
}
}