Skip to content

Commit

Permalink
#1: 🚚 migrate to Technology Brewery governance structure and github
Browse files Browse the repository at this point in the history
  • Loading branch information
d-ryan-ashcraft committed Apr 25, 2023
1 parent e28b052 commit 318da3f
Show file tree
Hide file tree
Showing 10 changed files with 52 additions and 90 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Technology Brewery

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Reinheitsgebot #
[![Maven Central](https://img.shields.io/maven-central/v/org.bitbucket.cpointe.reinheitsgebot/reinheitsgebot.svg)](https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.bitbucket.cpointe.reinheitsgebot%22%20AND%20a%3A%22reinheitsgdsebot%22)
[![Maven Central](https://img.shields.io/maven-central/v/org.technologybrewery.reinheitsgebot/reinheitsgebot.svg)](https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.technologybrewery.reinheitsgebot%22%20AND%20a%3A%22reinheitsgdsebot%22)
[![License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://opensource.org/licenses/mit)

In German history, Reinheitsgebot (pronounced RINE-HITES-KUH-BOWT) was a ["purity order"](https://en.wikipedia.org/wiki/Reinheitsgebot) regulating the ingredients that
Expand All @@ -23,7 +23,7 @@ Enforcer Plugin and how to layer Reinheitsgebot into it:
<configuration>
<rules>
<!-- TODO: ADD THIS RULE FOR BANNING IN DEPENDENCY MANAGEMENT: -->
<bannedDependenciesAndDependencyManagementDepenendencies implementation="org.bitbucket.cpointe.reinheitsgebot.BannedDependenciesIncludingDependencyManagementRule">
<bannedDependenciesAndDependencyManagementDepenendencies implementation="org.technologybrewery.reinheitsgebot.BannedDependenciesIncludingDependencyManagementRule">
</bannedDependenciesAndDependencyManagementDepenendencies>
</rules>
</configuration>
Expand All @@ -39,7 +39,7 @@ Enforcer Plugin and how to layer Reinheitsgebot into it:
<bannedDependenciesAndDependencyManagementDepenendencies>
<excludes>
<!-- TODO: ADD GAV INFO AS YOU WOULD FOR NORMAL BANNED DEPENDENCIES: -->
<exclude>org.bitbucket.askllc.fermenter.stout:stout-java</exclude>
<exclude>org.technologybrewery.fermenter.stout:stout-java</exclude>
...
</excludes>
</bannedDependenciesAndDependencyManagementDepenendencies>
Expand All @@ -50,7 +50,7 @@ Enforcer Plugin and how to layer Reinheitsgebot into it:
<dependencies>
<!-- TODO: ADD THIS PROJECT'S DEPENDENCY FOR RULE RESOLUTION: -->
<dependency>
<groupId>org.bitbucket.cpointe.reinheitsgebot</groupId>
<groupId>org.technologybrewery.reinheitsgebot</groupId>
<artifactId>reinheitsgebot-rules</artifactId>
<!-- TODO: UPDATE TO LATEST VERSION! -->
<version>1.0.0-SNAPSHOT</version>
Expand All @@ -70,18 +70,18 @@ like the following - please note the `(via dependencyManagement)` addition to
warning output when the banned dependency exists in dependency management:
```
[INFO] --- maven-enforcer-plugin:3.1.0:enforce (enforce-banned-dependencies-and-dependency-management-dependencies) @ reinheitsgebot-test ---
[WARNING] Rule 0: org.bitbucket.cpointe.reinheitsgebot.BannedDependenciesIncludingDependencyManagementRule failed with message:
[WARNING] Rule 0: org.technologybrewery.reinheitsgebot.BannedDependenciesIncludingDependencyManagementRule failed with message:
Typically, you would like fail the build - but we just want to see warning here
Found Banned Dependency (via dependencyManagement): org.bitbucket.askllc.fermenter.stout:stout-java:jar:1.0.0
Found Banned Dependency: org.bitbucket.askllc.krausening:krausening:jar:10
Found Banned Dependency (via dependencyManagement): org.technologybrewery.fermenter.stout:stout-java:jar:1.0.0
Found Banned Dependency: org.technologybrewery.krausening:krausening:jar:10
Use 'mvn dependency:tree' to locate the source of the banned dependencies.
```

# Releasing to Maven Central Repository

Reinheitsgebot uses both the `maven-release-plugin` and the `nexus-staging-maven-plugin` to facilitate the release and deployment of new Reinheitsgebot builds. In order to perform a release, you must:

1.) Obtain a [JIRA](https://issues.sonatype.org/secure/Dashboard.jspa) account with Sonatype OSSRH and access to the `org.bitbucket.askllc` project group
1.) Obtain a [JIRA](https://issues.sonatype.org/secure/Dashboard.jspa) account with Sonatype OSSRH and access to the `org.technologybrewery` project group

2.) Ensure that your Sonatype OSSRH JIRA account credentials are specified in your `settings.xml`:

Expand Down
88 changes: 15 additions & 73 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
<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>org.bitbucket.cpointe.reinheitsgebot</groupId>
<parent>
<groupId>org.technologybrewery</groupId>
<artifactId>parent</artifactId>
<version>1</version>
</parent>

<groupId>org.technologybrewery.reinheitsgebot</groupId>
<artifactId>reinheitsgebot</artifactId>
<version>1.0.2-SNAPSHOT</version>
<packaging>pom</packaging>
Expand All @@ -14,7 +20,7 @@
the standard ability to ban dependencies by checking dependency management in addition to standard dependencies
(that is using this rule simultaneously handles banning regular and dependency management dependencies).
</description>
<url>https://bitbucket.org/cpointe/reinheitsgebot</url>
<url>https://github.com/TechnologyBrewery/reinheitsgebot</url>

<licenses>
<license>
Expand All @@ -27,31 +33,20 @@
<developers>
<developer>
<name>Ryan Ashcraft</name>
<email>ryan@cpointe-inc.com</email>
<organization>Counterpointe Solutions Inc.</organization>
<organizationUrl>http://www.cpointe-inc.com</organizationUrl>
<email>dryanashcraft@gmail.com</email>
<organization>Technology Brewery</organization>
<organizationUrl>https://technologybrewery.org</organizationUrl>
</developer>
</developers>

<scm>
<connection>scm:git:ssh://git@bitbucket.org/cpointe/reinheitgebot.git</connection>
<developerConnection>scm:git:ssh://git@bitbucket.org/cpointe/reinheitsgebot.git</developerConnection>
<url>https://bitbucket.org/cpointe/reinheitsgebot/</url>
<connection>scm:git:ssh://git@github.com/TechnologyBrewery/reinheitgebot.git</connection>
<developerConnection>scm:git:ssh://git@github.com/TechnologyBrewery/reinheitsgebot.git</developerConnection>
<url>https://github.com/TechnologyBrewery/reinheitsgebot</url>
<tag>HEAD</tag>
</scm>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>

<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<version.enforcer>3.1.0</version.enforcer>
</properties>

Expand All @@ -60,7 +55,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<useReleaseProfile>false</useReleaseProfile>
Expand All @@ -71,11 +65,10 @@
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
Expand All @@ -93,57 +86,6 @@
<module>reinheitsgebot-test</module>
</modules>
</profile>
<profile>
<id>ossrh-release</id>
<modules>
<module>reinheitsgebot-rules</module>
<module>reinheitsgebot-test</module>
</modules>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.4.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>
3 changes: 1 addition & 2 deletions reinheitsgebot-rules/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.bitbucket.cpointe.reinheitsgebot</groupId>
<groupId>org.technologybrewery.reinheitsgebot</groupId>
<artifactId>reinheitsgebot</artifactId>
<version>1.0.2-SNAPSHOT</version>
</parent>
Expand All @@ -21,7 +21,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<configuration>
<systemPropertyVariables>
<cucumber.options>--tags not @manual</cucumber.options>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.bitbucket.cpointe.reinheitsgebot;
package org.technologybrewery.reinheitsgebot;

import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.DefaultArtifact;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.bitbucket.cpointe.reinheitsgebot;
package org.technologybrewery.reinheitsgebot;

import org.apache.maven.artifact.handler.DefaultArtifactHandler;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.bitbucket.cpointe.reinheitsgebot;
package org.technologybrewery.reinheitsgebot;

import org.apache.maven.artifact.Artifact;
import org.apache.maven.enforcer.rule.api.EnforcerRuleException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.bitbucket.cpointe.reinheitsgebot;
package org.technologybrewery.reinheitsgebot;

import io.cucumber.java.DefaultDataTableEntryTransformer;
import io.cucumber.java.en.Given;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.bitbucket.cpointe.reinheitsgebot;
package org.technologybrewery.reinheitsgebot;

import io.cucumber.junit.Cucumber;
import io.cucumber.junit.CucumberOptions;
Expand Down
4 changes: 2 additions & 2 deletions reinheitsgebot-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.bitbucket.cpointe.reinheitsgebot</groupId>
<groupId>org.technologybrewery.reinheitsgebot</groupId>
<artifactId>reinheitsgebot</artifactId>
<version>1.0.2-SNAPSHOT</version>
</parent>
Expand All @@ -19,7 +19,7 @@
<version>${version.enforcer}</version>
<configuration>
<rules>
<bannedDependenciesAndDependencyManagementDepenendencies implementation="org.bitbucket.cpointe.reinheitsgebot.BannedDependenciesIncludingDependencyManagementRule">
<bannedDependenciesAndDependencyManagementDepenendencies implementation="org.technologybrewery.reinheitsgebot.BannedDependenciesIncludingDependencyManagementRule">
</bannedDependenciesAndDependencyManagementDepenendencies>
</rules>
</configuration>
Expand Down

0 comments on commit 318da3f

Please sign in to comment.