Skip to content

Commit

Permalink
Fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Apr 15, 2024
1 parent 3849d68 commit 75872ef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 21 deletions.
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.16.1</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down
16 changes: 2 additions & 14 deletions src/it/MJAR-307/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ under the License.
<version>1.0</version>
<name>it-mjar-307</name>

<description>Wrong version of commons-io cause a ClassNotFoundException: org.apache.commons.io.file.attribute.FileTimes</description>

<properties>
<build.number>123</build.number>
<build.sealed>sealed</build.sealed>
<maven.build.timestamp.format>yyyyMMdd</maven.build.timestamp.format>
<project.build.outputTimestamp>${maven.build.timestamp}</project.build.outputTimestamp>
</properties>
Expand All @@ -40,18 +40,6 @@ under the License.
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>@project.version@</version>
<configuration>
<archive>
<index>true</index>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
<manifestEntries>
<Implementation-Build>${build.number}</Implementation-Build>
<Sealed>${build.sealed}</Sealed>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
7 changes: 0 additions & 7 deletions src/it/MJAR-307/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,3 @@ def target = new File( basedir, "target" );
def jarFile = new File( target, "mjar-307-1.0.jar" );

assert jarFile.exists()

def jar = new JarFile(jarFile)
assert jar.getEntry("META-INF/INDEX.LIST") != null

def manifest = jar.getManifest().getMainAttributes()
assert manifest.getValue("Implementation-Build") == "123"
assert manifest.getValue("Sealed") == "sealed"

0 comments on commit 75872ef

Please sign in to comment.