Skip to content

Commit 0d5d6cb

Browse files
authored
feat: publish Kit snapshot to sonatype (#759)
* publish Kit snapshot to sonatype * publish parent pom and fixes for jrelease process * use legacy server * unneeded property
1 parent 8cb8648 commit 0d5d6cb

File tree

4 files changed

+92
-31
lines changed

4 files changed

+92
-31
lines changed

.github/workflows/early-access.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,22 @@ jobs:
149149
run: |
150150
mvn -B -ntp -pl :parent -DartifactsDir=artifacts jreleaser:release
151151
152+
- name: Deploy parent pom and Kit to local staging
153+
run: |
154+
mvn -B -ntp deploy -pl :parent -Dmaven.test.skip=true
155+
mvn -B -ntp deploy -fkit -Dmaven.test.skip=true
156+
157+
- name: Publish Kit with JReleaser
158+
env:
159+
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
160+
JRELEASER_NEXUS2_USERNAME: ${{ secrets.JRELEASER_NEXUS2_USERNAME }}
161+
JRELEASER_NEXUS2_PASSWORD: ${{ secrets.JRELEASER_NEXUS2_TOKEN }}
162+
JRELEASER_GPG_PASSPHRASE: ${{ secrets.JRELEASER_GPG_PASSPHRASE }}
163+
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.JRELEASER_GPG_PUBLIC_KEY }}
164+
JRELEASER_GPG_SECRET_KEY: ${{ secrets.JRELEASER_GPG_SECRET_KEY }}
165+
run: |
166+
mvn -B -ntp -pl :parent jreleaser:deploy
167+
152168
- name: JReleaser output
153169
if: always()
154170
uses: actions/upload-artifact@v4

gluon-plugin/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
<gluon.attach.version>4.0.21</gluon.attach.version>
1616
</properties>
1717

18+
<repositories>
19+
<repository>
20+
<id>gluon-nexus</id>
21+
<url>https://nexus.gluonhq.com/nexus/content/repositories/releases/</url>
22+
</repository>
23+
</repositories>
24+
1825
<dependencies>
1926
<dependency>
2027
<groupId>com.gluonhq.scenebuilder</groupId>

kit/pom.xml

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
<modelVersion>4.0.0</modelVersion>
44
<artifactId>kit</artifactId>
55
<name>Scene Builder Kit</name>
6-
6+
<description>Scene Builder is a visual, drag n drop, layout tool for designing JavaFX application user interfaces</description>
7+
<inceptionYear>2012</inceptionYear>
8+
<url>https://github.com/gluonhq/scenebuilder</url>
9+
710
<parent>
811
<groupId>com.gluonhq.scenebuilder</groupId>
912
<artifactId>parent</artifactId>
@@ -47,17 +50,48 @@
4750
<plugin>
4851
<groupId>org.apache.maven.plugins</groupId>
4952
<artifactId>maven-jar-plugin</artifactId>
50-
<version>3.2.0</version>
53+
<version>3.4.2</version>
5154
<configuration>
5255
<finalName>scenebuilder-kit-${project.version}</finalName>
5356
<outputDirectory>target/lib</outputDirectory>
54-
<archive>
55-
<manifestEntries>
56-
<Automatic-Module-Name>com.gluonhq.scenebuilder.kit</Automatic-Module-Name>
57-
</manifestEntries>
58-
</archive>
5957
</configuration>
6058
</plugin>
59+
<plugin>
60+
<groupId>org.apache.maven.plugins</groupId>
61+
<artifactId>maven-javadoc-plugin</artifactId>
62+
<version>3.10.1</version>
63+
<executions>
64+
<execution>
65+
<id>attach-javadocs</id>
66+
<goals>
67+
<goal>jar</goal>
68+
</goals>
69+
<configuration>
70+
<attach>true</attach>
71+
<doclint>none</doclint>
72+
<jarOutputDirectory>${project.build.directory}/lib</jarOutputDirectory>
73+
<outputDirectory>${project.build.directory}/lib</outputDirectory>
74+
</configuration>
75+
</execution>
76+
</executions>
77+
</plugin>
78+
<plugin>
79+
<groupId>org.apache.maven.plugins</groupId>
80+
<artifactId>maven-source-plugin</artifactId>
81+
<version>3.3.1</version>
82+
<executions>
83+
<execution>
84+
<id>attach-sources</id>
85+
<goals>
86+
<goal>jar</goal>
87+
</goals>
88+
<configuration>
89+
<attach>true</attach>
90+
<outputDirectory>${project.build.directory}/lib</outputDirectory>
91+
</configuration>
92+
</execution>
93+
</executions>
94+
</plugin>
6195
</plugins>
6296
</build>
6397

pom.xml

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,10 @@
3030
<project.github.repository>gluonhq/scenebuilder</project.github.repository>
3131
<repository.url>github.com:${project.github.repository}</repository.url>
3232
<jreleaser.files.active>RELEASE</jreleaser.files.active>
33+
<altDeploymentRepository>local::file:./target/staging-deploy</altDeploymentRepository>
3334
<main.class.name/>
3435
</properties>
3536

36-
<repositories>
37-
<repository>
38-
<id>sonatype-snapshots</id>
39-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
40-
</repository>
41-
<repository>
42-
<id>gluon-nexus</id>
43-
<url>https://nexus.gluonhq.com/nexus/content/repositories/releases/</url>
44-
</repository>
45-
</repositories>
46-
4737
<dependencyManagement>
4838
<dependencies>
4939
<dependency>
@@ -102,23 +92,12 @@
10292
<plugin>
10393
<groupId>org.apache.maven.plugins</groupId>
10494
<artifactId>maven-compiler-plugin</artifactId>
105-
<version>3.8.1</version>
95+
<version>3.13.0</version>
10696
<configuration>
10797
<useIncrementalCompilation>false</useIncrementalCompilation>
10898
</configuration>
10999
</plugin>
110100

111-
<!-- Deploy to Maven Central -->
112-
<plugin>
113-
<groupId>org.apache.maven.plugins</groupId>
114-
<artifactId>maven-deploy-plugin</artifactId>
115-
<version>3.0.0-M1</version>
116-
<configuration>
117-
<skip>true</skip>
118-
</configuration>
119-
<inherited>false</inherited>
120-
</plugin>
121-
122101
<!-- Enforce code formatting and style -->
123102
<plugin>
124103
<groupId>org.apache.maven.plugins</groupId>
@@ -146,6 +125,12 @@
146125
<version>3.2.0</version>
147126
</plugin>
148127

128+
<plugin>
129+
<groupId>org.apache.maven.plugins</groupId>
130+
<artifactId>maven-deploy-plugin</artifactId>
131+
<version>3.1.3</version>
132+
</plugin>
133+
149134
<!-- Ensure that available tests are executed -->
150135
<plugin>
151136
<groupId>org.apache.maven.plugins</groupId>
@@ -203,7 +188,7 @@
203188
<plugin>
204189
<groupId>org.jreleaser</groupId>
205190
<artifactId>jreleaser-maven-plugin</artifactId>
206-
<version>1.5.1</version>
191+
<version>1.14.0</version>
207192
<inherited>false</inherited>
208193
<configuration>
209194
<jreleaser>
@@ -356,6 +341,25 @@
356341
</artifact>
357342
</artifacts>
358343
</files>
344+
<signing>
345+
<active>ALWAYS</active>
346+
<armored>true</armored>
347+
</signing>
348+
<deploy>
349+
<maven>
350+
<nexus2>
351+
<maven-central>
352+
<active>ALWAYS</active>
353+
<url>https://oss.sonatype.org/service/local</url>
354+
<snapshotSupported>true</snapshotSupported>
355+
<snapshotUrl>https://oss.sonatype.org/content/repositories/snapshots</snapshotUrl>
356+
<closeRepository>true</closeRepository>
357+
<releaseRepository>false</releaseRepository>
358+
<stagingRepositories>target/staging-deploy</stagingRepositories>
359+
</maven-central>
360+
</nexus2>
361+
</maven>
362+
</deploy>
359363
</jreleaser>
360364
</configuration>
361365
</plugin>

0 commit comments

Comments
 (0)