Skip to content

Commit

Permalink
Added add-opens switches top the manifest of both projects. Most peop…
Browse files Browse the repository at this point in the history
…le use boot to launch interlok, but it's possible to skip boot and go straight to core's SimpleBootstrap.
  • Loading branch information
aaron-mcgrath-adp committed May 5, 2023
1 parent 85bce1f commit fc8402d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions interlok-boot/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jar {
"Implementation-Version": project.version,
"Implementation-Vendor-Id": project.group,
"Implementation-Vendor": organizationName,
"Add-Opens": "java.base/java.lang java.base/java.util",
"Main-Class": "com.adaptris.interlok.boot.InterlokLauncher")
}
from ("$project.buildDir/spring-boot-loader") {
Expand Down
15 changes: 15 additions & 0 deletions interlok-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,21 @@ dependencies {

}

jar {
manifest {
attributes("Built-By": System.getProperty('user.name'),
"Build-Jdk": System.getProperty('java.version'),
"Implementation-Title": componentName,
"Implementation-Version": project.version,
"Implementation-Vendor-Id": project.group,
"Implementation-Vendor": organizationName,
"Add-Opens": "java.base/java.lang java.base/java.util",
"Main-Class": "com.adaptris.interlok.boot.InterlokLauncher")
}
from ("$project.buildDir/spring-boot-loader") {
exclude 'META-INF/MANIFEST.MF'
}
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
Expand Down

0 comments on commit fc8402d

Please sign in to comment.