build: make original jar default

main
sgoudham 2 years ago
parent 2c7a261279
commit 603bb0e33e
Signed by: hammy
GPG Key ID: 44E818FD5457EEA4

@ -88,6 +88,7 @@
<groupId>io.micronaut.test</groupId> <groupId>io.micronaut.test</groupId>
<artifactId>micronaut-test-junit5</artifactId> <artifactId>micronaut-test-junit5</artifactId>
<scope>test</scope> <scope>test</scope>
<optional>true</optional>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.junit.jupiter</groupId> <groupId>org.junit.jupiter</groupId>
@ -114,10 +115,11 @@
<build> <build>
<plugins> <plugins>
<plugin> <!-- This makes the shaded-jar the default, which I don't want-->
<groupId>io.micronaut.build</groupId> <!-- <plugin>-->
<artifactId>micronaut-maven-plugin</artifactId> <!-- <groupId>io.micronaut.build</groupId>-->
</plugin> <!-- <artifactId>micronaut-maven-plugin</artifactId>-->
<!-- </plugin>-->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
@ -131,6 +133,24 @@
</compilerArgs> </compilerArgs>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.4.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<!-- <outputFile>${project}-${version}-shaded</outputFile>-->
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>shaded</shadedClassifierName> <!-- Any name that makes sense -->
</configuration>
</execution>
</executions>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId> <artifactId>maven-source-plugin</artifactId>

Loading…
Cancel
Save