-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
74 lines (67 loc) · 1.87 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
plugins {
id 'maven-publish'
}
group 'org.example'
version '3.20.1-fix2'
repositories {
mavenCentral()
}
configurations {
protoc_publication
}
def exeArtifact = artifacts.add('protoc_publication', file('src/main/bin/protoc-3.20.1-win-amd.exe')) {
type 'amd64'
name 'protoc'
classifier 'win-amd64'
extension 'exe'
}
def exeX8664Artifact = artifacts.add('protoc_publication', file('src/main/bin/protoc-3.20.1-win-x86_64.exe')) {
type 'x86_64'
name 'protoc'
classifier 'win-x86_64'
extension 'exe'
}
def linuxAmdArtifact = artifacts.add('protoc_publication', file('src/main/bin/protoc-3.20.1-win-amd.exe')) {
type 'amd64'
name 'protoc'
classifier 'linux-amd64'
extension 'exe'
}
def linuxX8664Artifact = artifacts.add('protoc_publication', file('src/main/bin/protoc-3.20.1-linux-x86_64')) {
type 'x86_64'
name 'protoc'
classifier 'linux-x86_64'
extension 'exe'
}
publishing {
publications {
protoc(MavenPublication) {
groupId = "$group"
artifactId = 'protolock'
artifact exeArtifact
artifact linuxAmdArtifact
artifact exeX8664Artifact
artifact linuxX8664Artifact
pom {
name = 'protolock library'
description = 'Protoc library extenssion'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'rost5000'
name = 'Shaniiazov Rostislav'
email = '[email protected]'
}
}
}
}
}
repositories {
mavenLocal()
}
}