From d9d70ac941d2afbdbb310c7f1827c5198e677c2a Mon Sep 17 00:00:00 2001 From: Soh Boon Keong Date: Wed, 29 Jun 2022 14:52:07 +0800 Subject: [PATCH] update readme, fix gradle compile file issue --- README.md | 8 ++++---- build.gradle | 9 +++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 11d4ca7..3d5f572 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # APEX API Java Security Utility [![Build Status](https://travis-ci.org/GovTechSG/java-apex-api-security.svg?branch=master)](https://travis-ci.org/GovTechSG/java-apex-api-security) -[![Coverage Status](https://coveralls.io/repos/github/blasttoys/java-apex-api-security/badge.svg?branch=master)](https://coveralls.io/github/blasttoys/java-apex-api-security?branch=master) +[![Coverage Status](https://coveralls.io/repos/github/GovTechSG/java-apex-api-security/badge.svg?branch=master)](https://coveralls.io/github/GovTechSG/java-apex-api-security?branch=master) [![Known Vulnerabilities](https://snyk.io/test/github/govtechsg/java-apex-api-security/badge.svg)](https://snyk.io/test/github/govtechsg/java-apex-api-security) A java helper utilities that form HTTP security header for authentication and verification @@ -45,8 +45,8 @@ mvn package ``` The compiled _jar_ file will be located in the **target** folder -+ java-apex-api-security-.jar -+ java-apex-api-security--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 @@ -125,7 +125,7 @@ gradle test jacocoTestReport ``` The compiled _jar_ file will be located in the **build/libs** folder -+ java-apex-api-security-2.1.3.jar ++ java-apex-api-security-2.1.4.jar Import this jar into your java classpath to use the utility class diff --git a/build.gradle b/build.gradle index dfcc270..3750511 100644 --- a/build.gradle +++ b/build.gradle @@ -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'