Skip to content

Commit fb92ff4

Browse files
Konstantin PavlovKonstantin Pavlov
Konstantin Pavlov
authored and
Konstantin Pavlov
committed
Maven settings, preparing for release
1 parent 9bf659d commit fb92ff4

File tree

4 files changed

+79
-2
lines changed

4 files changed

+79
-2
lines changed

.github/workflows/maven.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
distribution: 'temurin'
2929
cache: maven
3030
- name: Build with Maven
31-
run: mvn -B verify javadoc:jar source:jar
31+
run: mvn -B verify
3232

3333
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
3434
- name: Update dependency graph

.mvn/jvm.config

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-Xmx2048m -Xms1024m -Djava.awt.headless=true

.mvn/maven.config

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-T4C
2+
--fail-at-end

pom.xml

+75-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>me.kpavlov.await4j</groupId>
88
<artifactId>await4j</artifactId>
9-
<version>1.0.0-SNAPSHOT</version>
9+
<version>0.1.0-SNAPSHOT</version>
1010

1111
<name>await4j</name>
1212
<description>Simplify Java async programming with virtual threads using an async/await style API.</description>
@@ -68,4 +68,78 @@
6868
</dependency>
6969
</dependencies>
7070

71+
<build>
72+
<plugins>
73+
<plugin>
74+
<groupId>org.apache.maven.plugins</groupId>
75+
<artifactId>maven-source-plugin</artifactId>
76+
<executions>
77+
<execution>
78+
<id>attach-sources</id>
79+
<goals>
80+
<goal>jar-no-fork</goal>
81+
</goals>
82+
</execution>
83+
</executions>
84+
</plugin>
85+
<plugin>
86+
<groupId>org.apache.maven.plugins</groupId>
87+
<artifactId>maven-javadoc-plugin</artifactId>
88+
<executions>
89+
<execution>
90+
<id>attach-javadocs</id>
91+
<goals>
92+
<goal>jar</goal>
93+
</goals>
94+
</execution>
95+
</executions>
96+
</plugin>
97+
<plugin>
98+
<groupId>org.apache.maven.plugins</groupId>
99+
<artifactId>maven-release-plugin</artifactId>
100+
<configuration>
101+
<autoVersionSubmodules>true</autoVersionSubmodules>
102+
<useReleaseProfile>true</useReleaseProfile>
103+
<releaseProfiles>release</releaseProfiles>
104+
<goals>deploy</goals>
105+
</configuration>
106+
</plugin>
107+
</plugins>
108+
</build>
109+
110+
<distributionManagement>
111+
<snapshotRepository>
112+
<id>ossrh</id>
113+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
114+
</snapshotRepository>
115+
<repository>
116+
<id>ossrh</id>
117+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
118+
</repository>
119+
</distributionManagement>
120+
121+
<profiles>
122+
<profile>
123+
<id>release</id>
124+
<build>
125+
<plugins>
126+
<plugin>
127+
<groupId>org.apache.maven.plugins</groupId>
128+
<artifactId>maven-gpg-plugin</artifactId>
129+
<version>3.2.3</version>
130+
<executions>
131+
<execution>
132+
<id>sign-artifacts</id>
133+
<phase>verify</phase>
134+
<goals>
135+
<goal>sign</goal>
136+
</goals>
137+
</execution>
138+
</executions>
139+
</plugin>
140+
</plugins>
141+
</build>
142+
</profile>
143+
</profiles>
144+
71145
</project>

0 commit comments

Comments
 (0)