Skip to content

Commit 3c72cf5

Browse files
author
Andrea Medeghini
committed
fix release configuration
1 parent 0fd4cc9 commit 3c72cf5

File tree

2 files changed

+53
-3
lines changed

2 files changed

+53
-3
lines changed

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,13 @@ dist:
4747
cp ffmpeg4java-linux/target/com.nextbreakpoint.ffmpeg4java.linux-*.jar dist
4848
cp ffmpeg4java-windows/target/com.nextbreakpoint.ffmpeg4java.windows-*.jar dist
4949

50-
.PHONY: release
51-
release:
50+
51+
.PHONY: github-release
52+
github-release:
53+
mvn -Dchannel=github clean package de.jutzig:github-release-plugin:release -Dgithub.draft=true
54+
55+
.PHONY: maven-release
56+
maven-release:
5257
mvn -Dchannel=ossrh clean deploy
5358

5459
.PHONY: set-version

pom.xml

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,15 @@
4040
<maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>
4141
<maven-surefire-plugin.version>3.3.0</maven-surefire-plugin.version>
4242
<maven-toolchains-plugin.version>3.2.0</maven-toolchains-plugin.version>
43-
<maven-dependency-plugin.version>3.7.0</maven-dependency-plugin.version>
43+
<maven-dependency-plugin.version>3.7.1</maven-dependency-plugin.version>
4444
<maven-enforcer-plugin.version>3.5.0</maven-enforcer-plugin.version>
4545
<maven-jar-plugin.version>3.4.1</maven-jar-plugin.version>
4646
<maven-gpg-plugin.version>1.5</maven-gpg-plugin.version>
4747
<versions-maven-plugin.version>2.16.2</versions-maven-plugin.version>
4848
<nexus-staging-maven-plugin.version>1.7.0</nexus-staging-maven-plugin.version>
49+
<github-release-plugin.version>1.6.0</github-release-plugin.version>
4950
<maven.version>3.6</maven.version>
51+
<github.draft>true</github.draft>
5052
</properties>
5153
<modules>
5254
<module>ffmpeg4java-macos</module>
@@ -106,6 +108,15 @@
106108
<artifactId>nexus-staging-maven-plugin</artifactId>
107109
<version>${nexus-staging-maven-plugin.version}</version>
108110
</plugin>
111+
<plugin>
112+
<groupId>de.jutzig</groupId>
113+
<artifactId>github-release-plugin</artifactId>
114+
<version>${github-release-plugin.version}</version>
115+
<configuration>
116+
<releaseName>${project.name} ${project.version}</releaseName>
117+
<tag>v${project.version}</tag>
118+
</configuration>
119+
</plugin>
109120
</plugins>
110121
</pluginManagement>
111122
<plugins>
@@ -331,5 +342,39 @@
331342
</repository>
332343
</distributionManagement>
333344
</profile>
345+
<profile>
346+
<id>github</id>
347+
<activation>
348+
<property>
349+
<name>channel</name>
350+
<value>github</value>
351+
</property>
352+
</activation>
353+
<build>
354+
<plugins>
355+
<plugin>
356+
<groupId>de.jutzig</groupId>
357+
<artifactId>github-release-plugin</artifactId>
358+
<configuration>
359+
<releaseName>FFmpeg4Java ${project.version}</releaseName>
360+
<tag>v${project.version}</tag>
361+
<failOnExistingRelease>false</failOnExistingRelease>
362+
<overwriteArtifact>false</overwriteArtifact>
363+
<draft>${github.draft}</draft>
364+
<fileSets>
365+
<fileSet>
366+
<directory>${project.basedir}</directory>
367+
<includes>
368+
<include>**/target/${project.artifactId}-${project.version}-x86_64.jar</include>
369+
<include>**/target/${project.artifactId}-${project.version}-x86_64.jar</include>
370+
<include>**/target/${project.artifactId}-${project.version}-x86_64.jar</include>
371+
</includes>
372+
</fileSet>
373+
</fileSets>
374+
</configuration>
375+
</plugin>
376+
</plugins>
377+
</build>
378+
</profile>
334379
</profiles>
335380
</project>

0 commit comments

Comments
 (0)