Skip to content

Commit

Permalink
Merge pull request #1 from gdgib/G2-1562-StartProject
Browse files Browse the repository at this point in the history
G2-1562 Start project
  • Loading branch information
gdgib authored Apr 29, 2024
2 parents 2f9224e + f692d31 commit faef828
Show file tree
Hide file tree
Showing 7 changed files with 191 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/maven-settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version='1.0' encoding='UTF-8'?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>github</id>
<username>${env.GITHUB_ACTOR}</username>
<password>${env.GITHUB_TOKEN}</password>
</server>
<server>
<id>github-</id>
<username>${env.GITHUB_ACTOR}</username>
<password>${env.GITHUB_TOKEN}</password>
</server>
</servers>
</settings>
25 changes: 25 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Java CI with Maven
"on":
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
concurrency: "${{ github.workflow }}-${{ github.ref }}"
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 11
cache: maven
- name: Build
run: "mvn -s \"${GITHUB_WORKSPACE}/.github/workflows/maven-settings.xml\" -B ${{ (((github.event_name == 'push') || (github.event_name == 'workflow_dispatch')) && (github.ref == 'refs/heads/master')) && 'deploy' || 'package' }} --file pom.xml -Prelease,release-snapshot"
env:
GITHUB_TOKEN: "${{ github.token }}"
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/.project
/.classpath
/.settings/
/target/
/bulldozer-temp.json
/bulldozer-state.json
/.factorypath
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# project
Project planning tools

Project planning tools
7 changes: 7 additions & 0 deletions pj-project/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/.project
/.classpath
/.settings/
/target/
/bulldozer-temp.json
/bulldozer-state.json
/.factorypath
112 changes: 112 additions & 0 deletions pj-project/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
<?xml version='1.0' encoding='UTF-8'?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.g2forge.project</groupId>
<artifactId>pj-project</artifactId>
<packaging>pom</packaging>
<version>0.0.1-SNAPSHOT</version>

<parent>
<groupId>com.g2forge.alexandria</groupId>
<artifactId>ax-project</artifactId>
<version>0.0.19-SNAPSHOT</version>
<relativePath>../../alexandria/ax-project/pom.xml</relativePath>
</parent>

<properties>
<alexandria.version>0.0.19-SNAPSHOT</alexandria.version>
<gearbox.version>0.0.10-SNAPSHOT</gearbox.version>

<project.organization>g2forge</project.organization>
<project.name>project</project.name>
<project.repository>project</project.repository>
</properties>

<name>project Project</name>
<description>Parent project for project.</description>
<url>
https://github.com/${project.organization}/${project.repository}/tree/${project.version}/${project.artifactId}</url>
<developers>
<developer>
<name>Greg Gibeling</name>
<email>[email protected]</email>
<organization>G2 Forge</organization>
<organizationUrl>http://www.g2forge.com</organizationUrl>
</developer>
</developers>
<licenses>
<license>
<name>The Apache License, Version 2.0</name>
<url>https://github.com/${project.organization}/${project.repository}/blob/${project.version}/LICENSE</url>
</license>
</licenses>
<scm>
<connection>scm:git:git://github.com/${project.organization}/${project.repository}.git</connection>
<developerConnection>scm:git:ssh://github.com:${project.organization}/${project.repository}.git</developerConnection>
<url>http://github.com/${project.organization}/${project.repository}/tree/${project.version}</url>
</scm>

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.5</version>
<configuration>
<properties>
<properties>
<name>alexandria.version</name>
<dependencies>
<dependency>
<groupId>com.g2forge.alexandria</groupId>
<artifactId>alexandria</artifactId>
</dependency>
</dependencies>
</properties>
<properties>
<name>gearbox.version</name>
<dependencies>
<dependency>
<artifactId>gearbox</artifactId>
</dependency>
</dependencies>
</properties>
</properties>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>release-snapshot</id>
<repositories>
<repository>
<id>github-</id>
<url>https://maven.pkg.github.com/g2forge/*</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub g2forge Apache Maven Packages</name>
<url>https://maven.pkg.github.com/g2forge/project</url>
</repository>
<snapshotRepository>
<id>github</id>
<name>GitHub g2forge Apache Maven Packages</name>
<url>https://maven.pkg.github.com/g2forge/project</url>
</snapshotRepository>
</distributionManagement>
</profile>
</profiles>
</project>
23 changes: 23 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version='1.0' encoding='UTF-8'?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<artifactId>project</artifactId>
<packaging>pom</packaging>

<parent>
<groupId>com.g2forge.project</groupId>
<artifactId>pj-project</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>pj-project/pom.xml</relativePath>
</parent>

<name>project</name>
<description>Project planning tools</description>

<modules>
<module>pj-project</module>
</modules>
</project>

0 comments on commit faef828

Please sign in to comment.