Skip to content

Commit

Permalink
v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustNagro committed Jun 28, 2021
1 parent 3fbf3c0 commit 0e88cd0
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,14 @@ Next, create a `pom.xml` file with the plugin:

There is only one goal, `sbt`, and two configuration parameters available. `jvmParams` is an array of parameters for the JVM running SBT, and `sbtParams` are the parameters passed to SBT itself.

You can bind the `sbt` goal to any phases you like, although only one is recommended for performance. Here we bind to `package`.
You can bind the `sbt` goal to any phases you like, although only one is recommended for performance. Here we bind to Maven's `package` phase.

Finally, notice that we skip execution of the built-in Maven compile and install plugins, since we're doing everything here with SBT.

## Version Table

If there's a newer version of SBT available, please file a gihub issue and I'll cut a new release.

| Sbt-Delegate-Maven-Plugin version | SBT version |
| --- | --- |
| 0.1.0 | 1.5.3 |
Expand Down
79 changes: 78 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,41 @@

<groupId>com.augustnagro</groupId>
<artifactId>sbt-delegate-maven-plugin</artifactId>
<version>0.1.0-SNAPSHOT</version>
<version>0.1.0</version>
<packaging>maven-plugin</packaging>

<name>SBT-Delegate-Maven-Plugin</name>
<description>A Maven plugin that caches runs SBT</description>
<url>https://github.com/AugustNagro/sbt-delegate-maven-plugin</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>

<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

<scm>
<url>https://github.com/AugustNagro/sbt-delegate-maven-plugin</url>
</scm>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
</repository>
</distributionManagement>

<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
Expand Down Expand Up @@ -42,8 +69,58 @@
<target>1.8</target>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.0</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.3.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>



</project>

0 comments on commit 0e88cd0

Please sign in to comment.