Skip to content

coverage test #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 9, 2022
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
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -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/GovTechSG/java-apex-api-security/badge.svg?branch=master)](https://coveralls.io/github/GovTechSG/java-apex-api-security?branch=master)
[![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)
[![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
Expand Down Expand Up @@ -64,7 +64,7 @@ mvn install
<dependency>
<groupId>com.api.util</groupId>
<artifactId>ApiSecurity</artifactId>
<version>2.1.3</version>
<version>2.1.4</version>
</dependency>
```

Expand All @@ -76,12 +76,12 @@ mvn install
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.17.0</version>
<version>2.17.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.17.0</version>
<version>2.17.1</version>
</dependency>
```

Expand All @@ -100,7 +100,7 @@ mvn test

### Gradle Guide

+ Download and Install Gradle (4.0 or above)
+ Download and Install Gradle (6.9 or above)
+ Java (1.8)

#### Preparation
Expand Down
32 changes: 17 additions & 15 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
plugins {
id 'java'
id 'jacoco'
id 'com.github.kt3k.coveralls' version '2.6.3'
id 'com.github.kt3k.coveralls' version '2.12.0'
}


version '2.1.3'
version '2.1.4'

tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
Expand All @@ -19,27 +19,29 @@ dependencies {
//compile group: 'org.apache.commons', name: 'commons-collections4', version: '4.1'

//gradle 4.0
compile group: 'commons-lang', name: 'commons-lang', version: '2.4'
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.17.1'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.17.1'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.12.6.1'
compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1'
compile group: 'org.bouncycastle', name: 'bcpkix-jdk15on', version: '1.69'
//compile group: 'commons-lang', name: 'commons-lang', version: '2.4'
//compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.17.1'
//compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.17.1'
//compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.12.6.1'
//compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1'
//compile group: 'org.bouncycastle', name: 'bcpkix-jdk15on', version: '1.69'

testCompile group: 'junit', name: 'junit', version: '4.13.1'
//testCompile group: 'junit', name: 'junit', version: '4.13.1'

//gradle 6.9
//implementation group: 'commons-lang', name: 'commons-lang', version: '2.4'
//implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.12.6.1'
//implementation group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1'
//implementation group: 'org.bouncycastle', name: 'bcpkix-jdk15on', version: '1.69'
//testImplementation group: 'junit', name: 'junit', version: '4.13.1'
implementation group: 'commons-lang', name: 'commons-lang', version: '2.4'
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.17.1'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.17.1'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.12.6.1'
implementation group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1'
implementation group: 'org.bouncycastle', name: 'bcpkix-jdk15on', version: '1.69'
testImplementation group: 'junit', name: 'junit', version: '4.13.1'
}

jar {
//Evaluate at execution time where all the configurations and dependencies are resolved
from {
configurations.compile.collect {
configurations.compileClasspath.collect {
it.isDirectory() ? it : zipTree(it)
}
}
Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.api.util</groupId>
<artifactId>ApiSecurity</artifactId>
<version>2.1.3</version>
<version>2.1.4</version>
<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -114,8 +114,8 @@
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<scm>
<connection>scm:git:https://github.com./GovTechSG/test-suites-apex-api-security.git</connection>
<developerConnection>scm:git:https://github.com./GovTechSG/test-suites-apex-api-security.git</developerConnection>
<url>https://github.com./GovTechSG</url>
<connection>scm:git:https://github.com./blasttoys/test-suites-apex-api-security.git</connection>
<developerConnection>scm:git:https://github.com./blasttoys/test-suites-apex-api-security.git</developerConnection>
<url>https://github.com./blasttoys</url>
</scm>
</project>