Skip to content

Commit

Permalink
Dat 15996 (#40)
Browse files Browse the repository at this point in the history
* chore(build-nightly.yml): remove nightly build workflow

chore(pom.xml): update build-helper-maven-plugin version to 3.4.0 for compatibility improvements
chore(pom.xml): update maven-failsafe-plugin version to 3.1.2 for bug fixes
chore(pom.xml): update maven-resources-plugin version to 3.3.1 for compatibility improvements
chore(pom.xml): update mockito-core version to 5.5.0 for new features and bug fixes
chore(pom.xml): update mockito-junit-jupiter version to 5.5.0 for new features and bug fixes
chore(pom.xml): update liquibase-test-harness version to 1.0.9 for compatibility improvements
feat(pom.xml): add maven-failsafe-plugin configuration for integration tests
feat(pom.xml): add executions for building javadoc and sources jars

* chore(pom.xml): update version from 0.0.1-SNAPSHOT to 0.1.0-SNAPSHOT for consistency and clarity

* chore(README.md): update liquibase-parent-pom version to 0.1.0 in the example code to reflect the desired version

* chore(release-published.yml): update workflow file to use the correct extension release logic file
chore(release-published.yml): update workflow file to use the correct pom release logic file for DAT-15505

* chore(release-published.yml): update workflow name to "Release Extension to Sonatype" for clarity and accuracy
docs(pom.xml): add URL to the GitHub repository for the parent POM to provide more information and context

* chore(pom.xml): update version from 0.2.0-SNAPSHOT to 0.1.0-SNAPSHOT to align with project versioning scheme

* chore(attach-artifact-release.yml): update workflow to use latest version of extension-attach-artifact-release.yml
chore(release-published.yml): update workflow to use latest version of extension-release-published.yml
chore(pom.xml): add developer information for Nathan Voxland

* chore(upload_asset.sh): remove unused script for uploading assets

The script `.github/upload_asset.sh` was removed as it was no longer being used. This script was responsible for uploading assets to a GitHub release. However, it was not being used in the project anymore, so it was deleted to clean up the codebase.

* feat(upload_asset.sh): add script to upload release assets to GitHub
feat(attach-artifact-release.yml): add workflow to attach artifact to release when pull request is merged
feat(release-published.yml): add workflow to publish release artifacts to Maven Central Repository

* fix(release-published.yml): remove duplicate entry for jar.asc in the -Dtypes parameter to fix build issue

* chore(release-published.yml): rename workflow from "Release Extension to Sonatype" to "Release POM to Sonatype" for clarity and accuracy
chore(release-published.yml): remove unnecessary steps and configurations related to Java and Maven release artifacts
chore(release-published.yml): update workflow to use the latest version of the "pom-release-published.yml" workflow from the "liquibase/build-logic" repository

* chore(create-release.yml): update liquibase/build-logic version to v0.4.4
chore(release-published.yml): update liquibase/build-logic version to v0.4.4
chore(snyk-nightly.yml): update liquibase/build-logic version to v0.4.4
chore(test.yml): update liquibase/build-logic version to v0.4.4
chore(pom.xml):
- Update Liquibase EULA URL to https://www.liquibase.com/eula
- Add jackson-dataformat-yaml version 2.15.2 as a test dependency
- Set scope of liquibase-core and liquibase-commercial dependencies to provided
- Add resource filtering for src/main/resources directory
- Set optimize and debug flags to true in maven-compiler-plugin configuration
- Add ApacheNoticeResourceTransformer and ManifestResourceTransformer to maven-shade-plugin configuration
- Add filters to exclude signature files from signed dependencies in maven-shade-plugin configuration
- Add snapshot profile with liquibase-extension-testing and jackson-dataformat-yaml as test dependencies
- Add gmavenplus-plugin configuration for snapshot profile
- Add gmavenplus-plugin configuration for coverage profile

* chore(pom.xml): update version from 0.1.0-SNAPSHOT to 0.1.1-SNAPSHOT for the liquibase-parent-pom
  • Loading branch information
jandroav authored Oct 2, 2023
1 parent a0236c6 commit 7145f9f
Show file tree
Hide file tree
Showing 5 changed files with 117 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ on:

jobs:
create-release:
uses: liquibase/build-logic/.github/workflows/[email protected].2
uses: liquibase/build-logic/.github/workflows/[email protected].4
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/release-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ permissions:

jobs:
release:
uses: liquibase/build-logic/.github/workflows/[email protected].2
uses: liquibase/build-logic/.github/workflows/[email protected].4
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/snyk-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ on:

jobs:
security-scan:
uses: liquibase/build-logic/.github/workflows/[email protected].2
uses: liquibase/build-logic/.github/workflows/[email protected].4
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ on:

jobs:
build-test:
uses: liquibase/build-logic/.github/workflows/[email protected].2
uses: liquibase/build-logic/.github/workflows/[email protected].4
secrets: inherit
116 changes: 113 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>org.liquibase</groupId>
<artifactId>liquibase-parent-pom</artifactId>
<name>Parent POM</name>
<version>0.2.0-SNAPSHOT</version>
<version>0.1.1-SNAPSHOT</version>
<description>Parent POM for all Extensions</description>
<url>https://github.com/liquibase/liquibase-parent-pom</url>
<packaging>pom</packaging>
Expand All @@ -15,8 +15,8 @@

<licenses>
<license>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<name>Apache License, Version 2.0</name>
<name>Liquibase EULA</name>
<url>https://www.liquibase.com/eula</url>
</license>
</licenses>

Expand Down Expand Up @@ -64,6 +64,7 @@
<hamcrest.version>1.3</hamcrest.version>
<jackson-core.version>2.15.2</jackson-core.version>
<jacoco-maven-plugin.version>0.8.10</jacoco-maven-plugin.version>
<jackson-dataformat-yaml.version>2.15.2</jackson-dataformat-yaml.version>
<jupiter.version>5.10.0</jupiter.version>
<junit-platform.version>1.10.0</junit-platform.version>
<jsonassert.version>1.5.1</jsonassert.version>
Expand Down Expand Up @@ -114,11 +115,13 @@
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
<version>${liquibase.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-commercial</artifactId>
<version>${liquibase.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down Expand Up @@ -251,6 +254,12 @@
</dependencies>

<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
Expand All @@ -265,6 +274,7 @@
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
<optimize>true</optimize>
<debug>true</debug>
<encoding>${project.build.sourceEncoding}</encoding>
<compilerArgs>
Expand Down Expand Up @@ -401,7 +411,25 @@
<transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
<addHeader>false</addHeader>
</transformer>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Implementation-Title>${project.name}</Implementation-Title>
<Bundle-Vendor>Liquibase</Bundle-Vendor>
<Bundle-Version>${project.version}</Bundle-Version>
</manifestEntries>
</transformer>
</transformers>
<filters>
<filter>
<!-- filter out signature files from signed dependencies, else repackaging fails with security ex -->
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
Expand Down Expand Up @@ -433,6 +461,71 @@
</build>

<profiles>
<!--Used
for development against unreleased liquibase versions-->
<profile>
<id>snapshot</id>
<properties>
<liquibase.version>0-SNAPSHOT</liquibase.version>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<dependencies>
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-extension-testing</artifactId>
<version>${liquibase.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-yaml</artifactId>
<version>${jackson-dataformat-yaml.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.liquibase.ext</groupId>
<artifactId>liquibase-sdk-maven-plugin</artifactId>
<version>0.10.13</version>
<configuration>
<githubToken>${env.GITHUB_TOKEN}</githubToken>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
<version>${gmavenplus-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>addSources</goal>
<goal>addTestSources</goal>
<goal>compile</goal>
<goal>compileTests</goal>
<goal>removeStubs</goal>
<goal>removeTestStubs</goal>
</goals>
<!--Runs standard tests and CommandTests which require liquibase-extension-testing-->
<configuration>
<testSources>
<testSource>
<directory>${project.basedir}/src/test/</directory>
<includes>
<include>**/**.groovy</include>
</includes>
</testSource>
</testSources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>coverage</id>
<activation>
Expand Down Expand Up @@ -555,6 +648,23 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
<version>${gmavenplus-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>addSources</goal>
<goal>addTestSources</goal>
<goal>compile</goal>
<goal>compileTests</goal>
<goal>removeStubs</goal>
<goal>removeTestStubs</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
Expand Down

0 comments on commit 7145f9f

Please sign in to comment.