Skip to content

Commit b79b8e3

Browse files
committed
release: Version 0.0.1
1 parent 3f89898 commit b79b8e3

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ jobs:
4646
if: "${{ env.STATUS == 'release' && github.event_name == 'release' }}"
4747
run: ./gradlew :plugin:publishPlugins
4848
env:
49-
ORG_GRADLE_PROJECT_pluginPortalApiKey: "${{ secrets.GRADLE_PLUGIN_PORTAL_KEY }}"
50-
ORG_GRADLE_PROJECT_pluginPortalApiSecret: "${{ secrets.GRADLE_PLUGIN_PORTAL_SECRET }}"
49+
GRADLE_PUBLISH_KEY: "${{ secrets.GRADLE_PLUGIN_PORTAL_KEY }}"
50+
GRADLE_PUBLISH_SECRET: "${{ secrets.GRADLE_PLUGIN_PORTAL_SECRET }}"

plugin/build.gradle.kts

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ plugins {
44
`java-gradle-plugin`
55
`kotlin-dsl`
66
id("com.gradle.plugin-publish") version "1.1.0"
7-
id("net.kyori.indra.publishing.gradle-plugin") version "3.0.1"
87
id("net.kyori.indra.license-header") version "3.0.1"
98
id("org.jlleitschuh.gradle.ktlint") version "11.0.0"
109
}
1110

1211
group = "io.papermc"
13-
version = "0.0.1-SNAPSHOT"
12+
version = "0.0.1"
1413

1514
repositories {
1615
mavenCentral()
@@ -66,19 +65,22 @@ testing {
6665
}
6766
}
6867

69-
indra {
70-
publishSnapshotsTo("paper", "https://repo.papermc.io/repository/maven-snapshots/")
68+
publishing.repositories.maven("https://repo.papermc.io/repository/maven-snapshots/") {
69+
name = "paper"
70+
credentials(PasswordCredentials::class)
71+
mavenContent { snapshotsOnly() }
7172
}
7273

73-
indraPluginPublishing {
74-
website("https://github.com/HangarMC/hangar-publish-plugin")
75-
plugin(
76-
"hangar-publish-plugin",
77-
"io.papermc.hangarpublishplugin.HangarPublishPlugin",
78-
"Hangar Publish Plugin",
79-
"Gradle plugin for publishing artifacts to Hangar",
80-
listOf("hangar", "publishing", "minecraft")
81-
)
74+
gradlePlugin {
75+
website.set("https://github.com/HangarMC/hangar-publish-plugin")
76+
vcsUrl.set("https://github.com/HangarMC/hangar-publish-plugin")
77+
plugins.create("hangar-publish-plugin") {
78+
id = "io.papermc.hangar-publish-plugin"
79+
displayName = "Hangar Publish Plugin"
80+
description = "Gradle plugin for publishing artifacts to Hangar"
81+
tags.set(listOf("hangar", "publishing", "plugin", "minecraft"))
82+
implementationClass = "io.papermc.hangarpublishplugin.HangarPublishPlugin"
83+
}
8284
}
8385

8486
gradlePlugin.testSourceSets(sourceSets["functionalTest"])

0 commit comments

Comments
 (0)