Skip to content

Commit 41bf1b1

Browse files
committed
Remove maven publishing
1 parent 80bc85d commit 41bf1b1

File tree

3 files changed

+0
-89
lines changed

3 files changed

+0
-89
lines changed

INTERNAL.md

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,9 @@ The following properties should be set locally in the `local.properties` file in
1010
| ---------------------- | ----- |
1111
| gradle.publish.key | Gradle API key. Required when publishing to the Gradle Plugin Portal using the `plugin-publish` plugin. |
1212
| gradle.publish.secret | Gradle API secret. Required when publishing to the Gradle Plugin Portal using the `plugin-publish` plugin. |
13-
| maven.repo.username | Maven repository username. Required when publishing to Maven repository using the `maven-publish` plugin. |
14-
| maven.repo.password | Maven repository password. Required when publishing to Maven repository using the `maven-publish` plugin. |
15-
| maven.signing.key | ASCII armored secret key. Required to sign the artifact using the `maven-publish` plugin. |
16-
| maven.signing.password | Passphrase of the secret key. Required to sign the artifact using the `maven-publish` plugin. |
1713

1814
# Publishing
1915

2016
To publish a new version of the plugin to the plugin repositories, bump the `version` property in `build.gradle.kts` and run:
2117
- `publishPlugins` to upload the plugin to Gradle Plugin Repository,
22-
- `publishPluginPublicationToMavenRepository` to upload the plugin to Maven Central Repository.
2318

24-
# Pre-release tests
25-
26-
Testing changes before publishing built artifacts to the repositories can be done by uploading a snapshot version of the plugin.
27-
To do so, add `-SNAPSHOT` suffix to the next release version and upload it to Maven repository with the `publishPluginPublicationToMavenRepository` Gradle task.
28-
29-
In the test project, configure the plugin using the legacy `apply` method as shown below:
30-
```
31-
buildscript {
32-
repositories {
33-
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
34-
}
35-
36-
dependencies {
37-
classpath("io.github.tomwyr:godot-kotlin-tree:X.Y.Z-SNAPSHOT")
38-
}
39-
}
40-
41-
apply<GodotNodeTree>()
42-
```

build.gradle.kts

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ plugins {
1313
kotlin("jvm") version "1.9.20"
1414
id("com.gradle.plugin-publish") version "1.2.1"
1515
id("com.adarshr.test-logger") version "4.0.0"
16-
`maven-publish`
17-
signing
1816
}
1917

2018
repositories {
@@ -56,65 +54,6 @@ java {
5654
withSourcesJar()
5755
}
5856

59-
publishing {
60-
publications {
61-
create<MavenPublication>("plugin") {
62-
artifactId = "godot-kotlin-tree"
63-
from(components["java"])
64-
65-
pom {
66-
name = "Godot Kotlin Tree"
67-
description = "A type-safe Godot node tree representation in Kotlin"
68-
url = "https://github.com/tomwyr/godot-kotlin-tree"
69-
70-
licenses {
71-
license {
72-
name = "MIT License"
73-
url = "https://gist.github.com/tomwyr/2edea68a06b67d69b2a80964a3ff6f34"
74-
}
75-
}
76-
77-
developers {
78-
developer {
79-
id = "tomwyr"
80-
name = "Tomasz Wyrowiński"
81-
url = "https://github.com/tomwyr"
82-
}
83-
}
84-
85-
scm {
86-
url = "https://github.com/tomwyr/godot-kotlin-tree"
87-
connection = "scm:git:git://github.com/tomwyr/godot-kotlin-tree.git"
88-
}
89-
}
90-
}
91-
}
92-
93-
repositories {
94-
maven {
95-
val releasesRepoUrl = "https://s01.oss.sonatype.org/content/repositories/releases/"
96-
val snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
97-
url = uri(if (isSnapshot) snapshotsRepoUrl else releasesRepoUrl)
98-
99-
credentials {
100-
username = prop("maven.repo.username")
101-
password = prop("maven.repo.password")
102-
}
103-
}
104-
}
105-
}
106-
107-
signing {
108-
isRequired = true
109-
val signingKey = prop("maven.signing.key").replace("\\n", "\n")
110-
val signingPassword = prop("maven.signing.password")
111-
useInMemoryPgpKeys(signingKey, signingPassword)
112-
sign(publishing.publications["plugin"])
113-
}
114-
115-
val isSnapshot: Boolean
116-
get() = version.toString().endsWith("SNAPSHOT")
117-
11857
fun loadLocalProps() = Properties().apply {
11958
load(FileInputStream(rootProject.file("local.properties")))
12059
}

scripts/create-properties.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
cat > local.properties << EOFecho
22
gradle.publish.key=
33
gradle.publish.secret=
4-
maven.repo.username=
5-
maven.repo.password=
6-
maven.signing.key=
7-
maven.signing.password=
84
EOF

0 commit comments

Comments
 (0)