-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
109 lines (95 loc) · 2.42 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
plugins {
id 'java'
id 'maven-publish'
id 'signing'
}
sourceCompatibility = 1.7
targetCompatibility = 1.7
version = "4.1.0"
jar {
manifest {
attributes("Built-By": "ZeroC, Inc.")
}
}
sourceSets {
main {
java {
srcDir "src"
}
}
}
repositories {
mavenCentral()
}
dependencies {
implementation group: 'org.apache.ant', name: 'ant', version: '1.10.5'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
classifier = 'sources'
}
task javadocJar(type: Jar) {
from javadoc
classifier = 'javadoc'
}
artifacts {
archives sourcesJar
archives javadocJar
}
publishing {
publications {
antIce(MavenPublication) {
groupId = 'com.zeroc'
artifactId = 'ant-ice'
version = version
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = 'Ice Builder for Ant'
description = 'Ant tasks to automate the compilation of Slice files to Java'
url = 'https://zeroc.com'
licenses {
license {
name = 'BSD-3-Clause'
url = 'https://github.com/zeroc-ice/ice-builder-ant/blob/master/LICENSE'
distribution = 'repo'
}
}
developers {
developer {
name = 'ZeroC Developers'
email = '[email protected]'
organization = 'ZeroC, Inc.'
organizationUrl = 'https://zeroc.com'
}
}
scm {
connection = 'scm:git:[email protected]/zeroc-ice/ice-builder-ant.git'
developerConnection = 'scm:git:[email protected]/zeroc-ice/ice-builder-ant.git'
url = 'http://github.com/zeroc-ice/ice-builder-ant'
}
}
}
}
repositories {
maven {
url mavenRepository
credentials {
username mavenUsername
password mavenPassword
}
}
}
}
signing {
sign publishing.publications.antIce
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}