Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Publish to GitHub Packages #1

Open
wants to merge 6 commits into
base: 2.0.13.RELEASE-branch
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/publish-artifacts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish package to GitHub Packages
on:
# release:
# types: [created]
pull_request

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '7'
distribution: 'zulu'
- name: Publish package
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 5 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
jdk:
- oraclejdk8
install:
- echo "Running a custom install command to create test-jar also"
- mvn clean jar:test-jar install -DskipTests
44 changes: 22 additions & 22 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
<name>OAuth for Spring Security</name>
<description>Parent Project for OAuth Support for Spring Security</description>
<packaging>pom</packaging>
<version>2.0.13.RELEASE</version>
<version>2.0.13.6.HEIMDALL</version>
<url>http://static.springframework.org/spring-security/oauth</url>

<modules>
<module>spring-security-oauth</module>
<!-- <module>spring-security-oauth</module> -->
<module>spring-security-oauth2</module>
<module>tests</module>
<module>samples</module>
<!-- <module>tests</module> -->
<!-- <module>samples</module> -->
<!--module>spring-security-jwt</module-->
</modules>

Expand All @@ -24,6 +24,13 @@
<java.version>1.6</java.version>
</properties>

<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>

Comment on lines +27 to +33

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can likely remove this.

<scm>
<url>http://github.com/SpringSource/spring-security-oauth</url>
<connection>scm:git:git://github.com/SpringSource/spring-security-oauth.git</connection>
Expand Down Expand Up @@ -271,6 +278,12 @@
<version>${commons-codec.version}</version>
</dependency>

<dependency>
<groupId>com.github.User</groupId>
<artifactId>Repo</artifactId>
<version>Tag</version>
</dependency>

</dependencies>
</dependencyManagement>

Expand Down Expand Up @@ -460,25 +473,12 @@
</plugins>
</reporting>

<distributionManagement>

<site>
<id>static.springframework.org</id>
<url>scp://static.springframework.org/var/www/domains/springframework.org/static/htdocs/spring-security/oauth</url>
</site>

<distributionManagement>
<repository>
<id>repo.spring.io</id>
<name>Spring Release Repository</name>
<url>http://repo.spring.io/libs-release-local</url>
<id>github</id>
<name>GitHub tadodotcom Apache Maven Packages</name>
<url>https://maven.pkg.github.com/tadodotcom/spring-security-oauth</url>
</repository>

<snapshotRepository>
<id>repo.spring.io</id>
<name>Spring Snapshot Repository</name>
<url>http://repo.spring.io/libs-snapshot-local</url>
</snapshotRepository>

</distributionManagement>
</distributionManagement>

</project>
48 changes: 47 additions & 1 deletion spring-security-oauth2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.security.oauth</groupId>
<artifactId>spring-security-oauth-parent</artifactId>
<version>2.0.13.RELEASE</version>
<version>2.0.13.6.HEIMDALL</version>
</parent>

<artifactId>spring-security-oauth2</artifactId>
Expand Down Expand Up @@ -51,6 +51,52 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>default-testResources</id>
<configuration>
<skip>false</skip>
</configuration>
<phase>process-test-resources</phase>
<goals>
<goal>testResources</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-testCompile</id>
<configuration>
<skip>false</skip>
</configuration>
<phase>test-compile</phase>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<configuration>
<skip>false</skip>
</configuration>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down