Skip to content

Commit fab3502

Browse files
author
Robert Schuh
committed
first commit
0 parents  commit fab3502

21 files changed

+1082
-0
lines changed

.github/workflows/publish.yaml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# GitHub recommends pinning actions to a commit SHA.
7+
# To get a newer version, you will need to update the SHA.
8+
# You can also reference a tag or branch, but the action may change without warning.
9+
10+
name: Publish package to the Maven Central Repository
11+
on:
12+
release:
13+
types: [created]
14+
jobs:
15+
publish:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Set up Java
20+
uses: actions/setup-java@v3
21+
with:
22+
java-version: '8'
23+
distribution: 'temurin'
24+
- name: Decode GPG Key
25+
run: |
26+
mkdir -p ~/.gradle/
27+
echo "${{secrets.OSSRH_GPG_SECRET_KEY}}" > ~/.gradle/secring.gpg.b64
28+
base64 -d ~/.gradle/secring.gpg.b64 > ~/.gradle/secring.gpg
29+
- name: Validate Gradle wrapper
30+
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
31+
- name: Publish package
32+
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
33+
with:
34+
arguments: publish
35+
env:
36+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
37+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

.gitignore

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
.gradle
2+
build/
3+
!gradle/wrapper/gradle-wrapper.jar
4+
!**/src/main/**/build/
5+
!**/src/test/**/build/
6+
gradle.properties
7+
8+
### IntelliJ IDEA ###
9+
.idea/
10+
.idea/modules.xml
11+
.idea/jarRepositories.xml
12+
.idea/compiler.xml
13+
.idea/libraries/
14+
*.iws
15+
*.iml
16+
*.ipr
17+
out/
18+
!**/src/main/**/out/
19+
!**/src/test/**/out/
20+
21+
### Eclipse ###
22+
.apt_generated
23+
.classpath
24+
.factorypath
25+
.project
26+
.settings
27+
.springBeans
28+
.sts4-cache
29+
bin/
30+
!**/src/main/**/bin/
31+
!**/src/test/**/bin/
32+
33+
### NetBeans ###
34+
/nbproject/private/
35+
/nbbuild/
36+
/dist/
37+
/nbdist/
38+
/.nb-gradle/
39+
40+
### VS Code ###
41+
.vscode/
42+
43+
### Mac OS ###
44+
.DS_Store

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# node-green

build.gradle

+85
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
plugins {
2+
id 'java-library'
3+
id 'maven-publish'
4+
id 'signing'
5+
}
6+
7+
repositories {
8+
mavenCentral()
9+
}
10+
11+
dependencies {
12+
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
13+
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
14+
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.14.1'
15+
implementation 'org.apache.commons:commons-text:1.10.0'
16+
}
17+
18+
test {
19+
useJUnitPlatform()
20+
}
21+
22+
group = 'io.github.robbilie'
23+
archivesBaseName = 'node-green'
24+
version = '0.0.1'
25+
26+
publishing {
27+
publications {
28+
mavenJava(MavenPublication) {
29+
from components.java
30+
pom {
31+
name = 'node-green'
32+
description = 'node-green is a spin on node-red\\\'s runtime implemented in java'
33+
url = 'https://github.com/Robbilie/node-green'
34+
35+
licenses {
36+
license {
37+
name = 'MIT License'
38+
url = 'http://opensource.org/licenses/MIT'
39+
}
40+
}
41+
developers {
42+
developer {
43+
id = 'Robbilie'
44+
name = 'Robert Schuh'
45+
email = 'github@eneticum.de'
46+
}
47+
}
48+
scm {
49+
connection = 'scm:git://github.com/Robbilie/node-green.git'
50+
developerConnection = 'scm:git://github.com/Robbilie/node-green.git'
51+
url = 'https://github.com/Robbilie/node-green'
52+
}
53+
}
54+
}
55+
}
56+
repositories {
57+
maven {
58+
name = "OSSRH"
59+
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
60+
credentials {
61+
username = System.getenv("MAVEN_USERNAME")
62+
password = System.getenv("MAVEN_PASSWORD")
63+
}
64+
}
65+
}
66+
}
67+
68+
69+
task javadocJar(type: Jar) {
70+
classifier = 'javadoc'
71+
from javadoc
72+
}
73+
74+
task sourcesJar(type: Jar) {
75+
classifier = 'sources'
76+
from sourceSets.main.allSource
77+
}
78+
79+
artifacts {
80+
archives javadocJar, sourcesJar
81+
}
82+
83+
signing {
84+
sign publishing.publications.mavenJava
85+
}

gradle/wrapper/gradle-wrapper.jar

58.4 KB
Binary file not shown.
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)