Skip to content

Commit 99da4e2

Browse files
committed
Replace Ant build with Gradle.
1 parent e882cfc commit 99da4e2

File tree

7 files changed

+93
-99
lines changed

7 files changed

+93
-99
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
.gradle
2+
gradle.properties
13
**/.DS_Store

httprpc-server/.classpath

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
66
<classpathentry kind="lib" path="api/servlet-api.jar"/>
77
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
8-
<classpathentry kind="output" path="build"/>
8+
<classpathentry kind="output" path="bin"/>
99
</classpath>

httprpc-server/.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
bin
22
build
3-
bundle
4-
doc

httprpc-server/build.gradle

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
plugins {
2+
id 'java-library'
3+
id 'maven-publish'
4+
id 'signing'
5+
}
6+
7+
group = 'org.httprpc'
8+
version = '5.4.1'
9+
10+
dependencies {
11+
api fileTree(dir: 'api', include: '*.jar')
12+
}
13+
14+
sourceSets {
15+
main {
16+
java {
17+
srcDirs = ['src']
18+
}
19+
}
20+
21+
test {
22+
java {
23+
srcDirs = ['test']
24+
}
25+
}
26+
}
27+
28+
jar {
29+
manifest {
30+
attributes (
31+
'Implementation-Title': project.name,
32+
'Implementation-Version': project.version
33+
)
34+
}
35+
}
36+
37+
task sourcesJar(type: Jar) {
38+
from sourceSets.main.allJava
39+
classifier = 'sources'
40+
}
41+
42+
task javadocJar(type: Jar) {
43+
from javadoc
44+
classifier = 'javadoc'
45+
}
46+
47+
publishing {
48+
repositories {
49+
mavenCentral()
50+
}
51+
52+
publications {
53+
mavenJava(MavenPublication) {
54+
artifactId = 'httprpc-server'
55+
from components.java
56+
artifact sourcesJar
57+
artifact javadocJar
58+
pom {
59+
name = project.name
60+
description = 'Lightweight REST services for Java'
61+
url = 'http://httprpc.org'
62+
licenses {
63+
license {
64+
name = 'The Apache License, Version 2.0'
65+
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
66+
}
67+
}
68+
developers {
69+
developer {
70+
name = 'Greg Brown'
71+
email = 'gk_brown@icloud.com'
72+
}
73+
}
74+
scm {
75+
connection = 'scm:git:git://github.com/gk-brown/HTTP-RPC.git'
76+
url = 'https://github.com/gk-brown/HTTP-RPC/tree/master/httprpc-server'
77+
}
78+
}
79+
}
80+
}
81+
}
82+
83+
signing {
84+
sign publishing.publications.mavenJava
85+
}

httprpc-server/build.xml

Lines changed: 0 additions & 62 deletions
This file was deleted.

httprpc-server/pom.xml

Lines changed: 0 additions & 34 deletions
This file was deleted.

settings.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
rootProject.name = 'HTTP-RPC'
2+
3+
include 'httprpc-server'
4+
5+
enableFeaturePreview('STABLE_PUBLISHING')

0 commit comments

Comments
 (0)