Skip to content

Commit

Permalink
fix(jar): Manifest missing attributes (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseLion committed Sep 13, 2023
1 parent 544dba6 commit 00f489e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,14 @@ jar {
from(sourceSets.main.allSource)
manifest {
attributes(
'Build-Jdk': "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})",
'Build-Jdk-Spec': java.sourceCompatibility,
'Build-Timestamp': LocalDateTime.now().toString(),
'Created-By': "Gradle ${gradle.gradleVersion}",
'Implementation-Title': project.name,
'Implementation-Vendor': 'Jose Luis Leon',
'Implementation-Version': project.version,
'Package': "${project.group}.${project.name}",
)
}
}
Expand Down
5 changes: 4 additions & 1 deletion config/checkstyle/suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@

<suppressions>
<!-- Tests -->
<suppress checks="InnerTypeLast" files=".*[\\/]src[\\/]test[\\/]" />
<suppress
checks="InnerTypeLast|MethodName|TypeName"
files=".*[\\/]src[\\/]test[\\/]"
/>
</suppressions>

0 comments on commit 00f489e

Please sign in to comment.