Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ mvn package
```

The compiled _jar_ file will be located in the **target** folder
+ java-apex-api-security-<version>.jar
+ java-apex-api-security-<version>-jar-with-dependencies.jar (this includes log4j libraries)
+ ApiSecurity-2.1.4.jar
+ ApiSecurity-2.1.4-jar-with-dependencies.jar (this includes log4j libraries)

Import this jar file into your java classpath to use the utility class

Expand Down
9 changes: 5 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ dependencies {

jar {
//Evaluate at execution time where all the configurations and dependencies are resolved
from {
configurations.compileClasspath.collect {
it.isDirectory() ? it : zipTree(it)
}
from sourceSets.main.output
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
dependsOn configurations.runtimeClasspath
from (configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) }) {
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
}
manifest {
attributes 'Main-Class': 'ApiSigning'
Expand Down