-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
231 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: Generate javadoc | ||
run: ./gradlew generateJavadoc | ||
run: ./gradlew javadoc | ||
|
||
- name: Deploy 🚀 | ||
uses: JamesIves/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.gradle | ||
**/build/ | ||
**/bin/ | ||
!src/**/build/ | ||
|
||
# Ignore Gradle GUI config | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,47 @@ | ||
/* | ||
* This file was generated by the Gradle 'init' task. | ||
* | ||
* This generated file contains a sample Java library project to get you started. | ||
* For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle | ||
* User Manual available at https://docs.gradle.org/7.4.2/userguide/building_java_projects.html | ||
*/ | ||
|
||
plugins { | ||
id 'java-library' | ||
id 'maven-publish' | ||
id 'jacoco' // Adds jacocoTestReport task for coverage. | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
// Bouncy Castle | ||
implementation 'org.bouncycastle:bcprov-jdk18on:1.71' | ||
implementation 'org.bouncycastle:bcprov-ext-jdk18on:1.71' | ||
implementation 'org.bouncycastle:bcpkix-jdk18on:1.71' | ||
|
||
// Logging | ||
implementation 'org.slf4j:slf4j-api:1.7.36' | ||
|
||
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.1' | ||
testImplementation 'org.mockito:mockito-inline:4.6.1' | ||
testImplementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.17.2' | ||
} | ||
|
||
tasks.named('test') { | ||
useJUnitPlatform() | ||
} | ||
|
||
test { | ||
testLogging { | ||
showStackTraces = true | ||
exceptionFormat = 'full' | ||
} | ||
} | ||
|
||
task generateJavadoc(type: Javadoc) { | ||
source = sourceSets.main.allJava | ||
classpath = project.sourceSets.main.compileClasspath | ||
java { | ||
withSourcesJar() | ||
} | ||
|
||
publishing { | ||
publications { | ||
maven(MavenPublication) { | ||
groupId = 'fi.protonode.certy' | ||
artifactId = 'certy' | ||
version = '0.1' | ||
|
||
from components.java | ||
|
||
pom { | ||
licenses { | ||
license { | ||
name = 'The Apache License, Version 2.0' | ||
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.