Skip to content

Commit 13bddcd

Browse files
authored
Merge pull request #1 from Multiverse/dtm/contents
Add the plugin stuff.
2 parents 0bd9e38 + 26a5063 commit 13bddcd

13 files changed

+668
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Require PR Label
2+
3+
on:
4+
pull_request:
5+
types: [opened, labeled, unlabeled, synchronize]
6+
branches: [main]
7+
8+
jobs:
9+
require_label:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: mheap/github-action-required-labels@v2
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
with:
16+
mode: exactly
17+
count: 1
18+
labels: "release:major, release:minor, release:patch, no release"

.github/workflows/push.release.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Create and Publish Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
create_release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Create Release
13+
id: create-release
14+
uses: rymndhng/release-on-push-action@v0.28.0
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
with:
18+
bump_version_scheme: norelease
19+
tag_prefix: v
20+
release_name: <RELEASE_VERSION>
21+
use_github_release_notes: true
22+
23+
publish_release:
24+
runs-on: ubuntu-latest
25+
needs:
26+
- create_release
27+
steps:
28+
- uses: actions/checkout@v4
29+
30+
- uses: actions/setup-java@v3
31+
with:
32+
java-version: '21'
33+
distribution: 'adopt'
34+
cache: gradle
35+
36+
- name: Validate Gradle wrapper
37+
uses: gradle/wrapper-validation-action@v1
38+
39+
- name: Build & Publish
40+
uses: gradle/gradle-build-action@v2
41+
env:
42+
GITHUB_VERSION: ${{ needs.create_release.outputs.version }}
43+
with:
44+
arguments: >
45+
clean build publish
46+
-PmultiverseUsername=${{ secrets.REPOSILITE_REPO_USERNAME }}
47+
-PmultiversePassword=${{ secrets.REPOSILITE_REPO_PASSWORD }}

build.gradle

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
plugins {
2+
id 'groovy-gradle-plugin'
3+
id 'maven-publish'
4+
id "org.jetbrains.kotlin.jvm" version "2.0.21"
5+
}
6+
7+
group = 'org.mvplugins.gradle'
8+
version = System.getenv('GITHUB_VERSION') ?: '0.0.0-SNAPSHOT'
9+
10+
repositories {
11+
mavenCentral()
12+
}
13+
14+
dependencies {
15+
implementation gradleApi()
16+
implementation 'com.gradleup.shadow:com.gradleup.shadow.gradle.plugin:8.3.5'
17+
implementation 'org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin:2.0.21'
18+
}
19+
20+
publishing {
21+
repositories {
22+
maven {
23+
name = "multiverse"
24+
def releasesRepoUrl = "https://repo.onarandombox.com/multiverse-releases"
25+
def snapshotsRepoUrl = "https://repo.onarandombox.com/multiverse-snapshots"
26+
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
27+
credentials(PasswordCredentials)
28+
}
29+
}
30+
}

gradle/wrapper/gradle-wrapper.jar

59.3 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Sun Feb 02 10:11:08 EST 2025
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
5+
zipStoreBase=GRADLE_USER_HOME
6+
zipStorePath=wrapper/dists

gradlew

Lines changed: 234 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)