Skip to content

Commit d2309dd

Browse files
authored
Merge pull request #7 from emotionbug/develop
write publishing scripts for sonatype publishing
2 parents 25fe465 + 5c45098 commit d2309dd

File tree

6 files changed

+57
-9
lines changed

6 files changed

+57
-9
lines changed

build.gradle.kts

Lines changed: 57 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44

55
plugins {
66
java
7-
`maven-publish`
7+
signing
88
checkstyle
9+
`maven-publish`
910
id("com.github.johnrengelman.shadow") version "6.1.0"
11+
id("io.github.gradle-nexus.publish-plugin") version "1.0.0"
1012
}
1113

1214
repositories {
@@ -43,13 +45,64 @@ dependencies {
4345
}
4446

4547
group = "io.github.emotionbug"
46-
version = "1.0.11"
48+
version = "1.0.12"
4749
description = "JDBC over SSH"
4850
java.sourceCompatibility = JavaVersion.VERSION_1_8
4951

52+
5053
publishing {
51-
publications.create<MavenPublication>("maven") {
52-
from(components["java"])
54+
publications {
55+
create<MavenPublication>("mavenJava") {
56+
from(components["java"])
57+
58+
pom {
59+
name.set("jdbc-sshj")
60+
description.set("JDBC over SSH")
61+
url.set("https://github.com/emotionbug/jdbc-sshj")
62+
licenses {
63+
license {
64+
name.set("The Apache Software License, Version 2.0")
65+
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
66+
distribution.set("repo")
67+
}
68+
}
69+
developers {
70+
developer {
71+
id.set("emotionbug")
72+
name.set("emotionbug")
73+
}
74+
}
75+
76+
issueManagement {
77+
url.set("https://github.com/emotionbug/jdbc-sshj/issues")
78+
system.set("GitHub Issues")
79+
}
80+
81+
scm {
82+
connection.set("scm:git:git:github.com/emotionbug/jdbc-sshj.git")
83+
developerConnection.set("scm:git:git@github.com:emotionbug/jdbc-sshj.git")
84+
url.set("https://github.com/emotionbug/jdbc-sshj")
85+
}
86+
}
87+
}
88+
}
89+
}
90+
91+
java {
92+
withJavadocJar()
93+
withSourcesJar()
94+
}
95+
96+
signing {
97+
sign(publishing.publications)
98+
}
99+
100+
nexusPublishing {
101+
repositories {
102+
create("Sonatype") { //only for users registered in Sonatype after 24 Feb 2021
103+
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
104+
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
105+
}
53106
}
54107
}
55108

src/main/java/io/github/emotionbug/jdbc/sshj/AbstractTunnel.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
/**
1717
* @author boky
18-
* @created 11/02/2017 18:10
1918
*/
2019
@SuppressWarnings("WeakerAccess")
2120
public abstract class AbstractTunnel {

src/main/java/io/github/emotionbug/jdbc/sshj/ConnectionData.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
/**
77
* @author boky
8-
* @created 11/02/2017 17:47
98
*/
109
public class ConnectionData {
1110

src/main/java/io/github/emotionbug/jdbc/sshj/PlainPasswordFinder.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
/**
77
* @author boky
8-
* @created 08/02/2017 15:01
98
*/
109
public class PlainPasswordFinder implements PasswordFinder {
1110

src/main/java/io/github/emotionbug/jdbc/sshj/SshConnection.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
/**
2323
* @author boky
24-
* @created 11/02/2017 20:06
2524
*/
2625
public class SshConnection implements Connection {
2726

src/main/java/io/github/emotionbug/jdbc/sshj/SshNativeTunnel.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
/**
1717
* @author boky
18-
* @created 11/02/2017 17:50
1918
*/
2019
public class SshNativeTunnel extends AbstractTunnel {
2120

0 commit comments

Comments
 (0)