This commit is contained in:
@@ -28,7 +28,7 @@ jobs:
|
|||||||
echo "Running test suite..."
|
echo "Running test suite..."
|
||||||
- name: Build project
|
- name: Build project
|
||||||
run: |
|
run: |
|
||||||
mvn -B -DskipTests clean package source:jar javadoc:jar
|
mvn -B -DskipTests clean package -Dhttps.protocols=TLSv1.2 -Djdk.tls.client.protocols=TLSv1.2
|
||||||
- name: Deploy to Nexus
|
- name: Deploy to Nexus
|
||||||
if: success()
|
if: success()
|
||||||
run: |
|
run: |
|
||||||
@@ -43,7 +43,7 @@ jobs:
|
|||||||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
|
||||||
<servers>
|
<servers>
|
||||||
<server>
|
<server>
|
||||||
<id>timi-nexus</id>
|
<id>timi_nexus</id>
|
||||||
<username>${{ secrets.NEXUS_USERNAME }}</username>
|
<username>${{ secrets.NEXUS_USERNAME }}</username>
|
||||||
<password>${{ secrets.NEXUS_PASSWORD }}</password>
|
<password>${{ secrets.NEXUS_PASSWORD }}</password>
|
||||||
</server>
|
</server>
|
||||||
@@ -65,7 +65,7 @@ jobs:
|
|||||||
-Djavadoc="$javadoc_jar" \
|
-Djavadoc="$javadoc_jar" \
|
||||||
-DpomFile="./pom.xml" \
|
-DpomFile="./pom.xml" \
|
||||||
-Durl="https://nexus.imyeyu.com/repository/maven-releases/" \
|
-Durl="https://nexus.imyeyu.com/repository/maven-releases/" \
|
||||||
-DrepositoryId="timi-nexus" \
|
-DrepositoryId="timi_nexus" \
|
||||||
-Dhttps.protocols=TLSv1.2 \
|
-Dhttps.protocols=TLSv1.2 \
|
||||||
-Djdk.tls.client.protocols=TLSv1.2
|
-Djdk.tls.client.protocols=TLSv1.2
|
||||||
- name: Create release
|
- name: Create release
|
||||||
|
|||||||
31
pom.xml
31
pom.xml
@@ -26,6 +26,15 @@
|
|||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-source-plugin</artifactId>
|
<artifactId>maven-source-plugin</artifactId>
|
||||||
<version>3.4.0</version>
|
<version>3.4.0</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>attach-sources</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>jar</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.projectlombok</groupId>
|
<groupId>org.projectlombok</groupId>
|
||||||
@@ -63,6 +72,15 @@
|
|||||||
<charset>UTF-8</charset>
|
<charset>UTF-8</charset>
|
||||||
<docencoding>UTF-8</docencoding>
|
<docencoding>UTF-8</docencoding>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>attach-javadocs</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>jar</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
@@ -87,6 +105,19 @@
|
|||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
|
|
||||||
|
<pluginRepositories>
|
||||||
|
<pluginRepository>
|
||||||
|
<id>timi_nexus</id>
|
||||||
|
<url>https://nexus.imyeyu.com/repository/maven-public/</url>
|
||||||
|
<releases>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</releases>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</snapshots>
|
||||||
|
</pluginRepository>
|
||||||
|
</pluginRepositories>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.imyeyu.io</groupId>
|
<groupId>com.imyeyu.io</groupId>
|
||||||
|
|||||||
Reference in New Issue
Block a user