Skip to content

Commit 08f7734

Browse files
author
ahmetduruer
committed
feat: test release in mvn central
1 parent 417789b commit 08f7734

File tree

3 files changed

+93
-1
lines changed

3 files changed

+93
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,11 @@ jobs:
105105
USERNAME_GITHUB: ${{ secrets.USERNAME_GITHUB }}
106106
TOKEN_GITHUB: ${{ secrets.TOKEN_GITHUB }}
107107
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
108-
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
108+
OSSRH_TOKEN: ${{ secrets.OSSRH_PASSWORD }}
109+
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
109110
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
110111
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
112+
GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY }}
111113

112114
- name: Setup Node.js
113115
uses: actions/setup-node@v3

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ plugins {
1818
kotlin("jvm") version "2.0.21"
1919
kotlin("kapt") version "2.0.21"
2020
id("com.github.johnrengelman.shadow") version "8.1.1"
21+
id("org.jreleaser") version "1.12.0"
2122
application
2223
`maven-publish`
2324
signing

jreleaser.yml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
project:
2+
name: Parsek
3+
description: A Kotlin-based plugin framework and web application
4+
longDescription: |
5+
Parsek is a powerful Kotlin-based plugin framework that provides a flexible
6+
and extensible architecture for building modular applications with plugin support.
7+
license: MIT
8+
authors:
9+
- name: ParsekDev
10+
11+
links:
12+
homepage: https://github.com/ParsekDev/parsek
13+
documentation: https://github.com/ParsekDev/parsek#readme
14+
license: https://github.com/ParsekDev/parsek/blob/main/LICENSE
15+
java:
16+
groupId: dev.parsek
17+
artifactId: core
18+
version: '{{projectVersion}}'
19+
mainJar: '{{distributionArtifactFile}}'
20+
multiProject: false
21+
22+
release:
23+
github:
24+
owner: ParsekDev
25+
name: parsek
26+
tagName: 'v{{projectVersion}}'
27+
name: 'Parsek {{projectVersion}}'
28+
body: |
29+
## What's Changed
30+
31+
* Release {{projectVersion}}
32+
33+
**Full Changelog**: https://github.com/ParsekDev/parsek/compare/{{previousTag}}...{{tagName}}
34+
draft: false
35+
prerelease: false
36+
overwrite: false
37+
update: true
38+
skipTag: false
39+
skipRelease: false
40+
discussionCategoryName: ''
41+
42+
distributions:
43+
core:
44+
name: Parsek
45+
executable:
46+
name: parsek
47+
unixExtension: ''
48+
windowsExtension: '.bat'
49+
artifacts:
50+
- path: '{{projectJavaMainJar}}'
51+
platform: '{{os}}'
52+
java:
53+
enabled: true
54+
groupId: '{{projectJavaGroupId}}'
55+
artifactId: '{{projectJavaArtifactId}}'
56+
version: '{{projectJavaVersion}}'
57+
mainJar: '{{distributionArtifactFile}}'
58+
multiProject: false
59+
archive:
60+
format: ZIP
61+
attachPlatform: false
62+
63+
publishers:
64+
maven:
65+
core:
66+
active: ALWAYS
67+
repository:
68+
active: ALWAYS
69+
url: https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/
70+
username: '{{env.OSSRH_USERNAME}}'
71+
password: '{{env.OSSRH_TOKEN}}'
72+
snapshotUrl: https://s01.oss.sonatype.org/content/repositories/snapshots/
73+
signing:
74+
active: ALWAYS
75+
mode: COMMAND
76+
keyName: '{{env.GPG_KEY_ID}}'
77+
passphrase: '{{env.GPG_PASSPHRASE}}'
78+
publicKey: '{{env.GPG_PUBLIC_KEY}}'
79+
secretKey: '{{env.GPG_SECRET_KEY}}'
80+
nexus:
81+
active: ALWAYS
82+
url: https://s01.oss.sonatype.org/
83+
username: '{{env.OSSRH_USERNAME}}'
84+
password: '{{env.OSSRH_TOKEN}}'
85+
closeRepository: true
86+
releaseRepository: true
87+
autoPublish: true
88+
publishWait: 60
89+
publishRetry: 10

0 commit comments

Comments
 (0)