Skip to content

Commit

Permalink
Merge pull request #44 from sailpoint-oss/prepublication-fixes
Browse files Browse the repository at this point in the history
prepublication-fixes
  • Loading branch information
matt-domsch-sp authored May 7, 2021
2 parents 7bcd88d + 8c4f289 commit f998751
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 15 deletions.
93 changes: 81 additions & 12 deletions fastfed-java-sdk/build.gradle
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java project to get you started.
* For more details take a look at the Java Quickstart chapter in the Gradle
* User Manual available at https://docs.gradle.org/5.2.1/userguide/tutorial_java_projects.html
*/

plugins {
// Apply the java plugin to add support for Java
id 'java-library'
id 'java-library-distribution'
id 'maven-publish'
id 'signing'
}

version = '0.2.0-SNAPSHOT'

repositories {
mavenCentral()
}

version = '0.1.0'

jar {
manifest {
attributes('Implementation-Title': project.name,
Expand All @@ -28,7 +22,7 @@ jar {

distributions {
main {
baseName = 'fastfed-java-sdk'
baseName = 'openid-fastfed-sdk'
contents {
from 'src/main/resources/'
into "config"
Expand Down Expand Up @@ -67,4 +61,79 @@ allprojects {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
}
}

java {
modularity.inferModulePath = true
withJavadocJar()
withSourcesJar()
}

javadoc {
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}

ext.isReleaseVersion = !version.endsWith("SNAPSHOT")

publishing {
publications {
maven(MavenPublication) {
from components.java
pom {
name = 'openid-fastfed-sdk'
description = 'OpenID Fast Federation SDK for Java'
url = 'http://github.com/sailpoint-oss/fastfed-sdk'

licenses {
license {
name = 'MIT'
url = 'https://opensource.org/licenses/MIT'
}
}
developers {
developer {
id = 'brian-rose-sp'
name = 'Brian Rose'
email = '[email protected]'
}
developer {
id = 'matt-domsch-sp'
name = 'Matt Domsch'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/sailpoint-oss/fastfed-sdk.git'
developerConnection = 'scm:git:ssh://github.com/sailpoint-oss/fastfed-sdk.git'
url = 'https://github.com/sailpoint-oss/fastfed-sdk/'
}
}
}
}
repositories {
maven {
name = 'myRepo'
url = "file://${buildDir}/repo"
}
maven {
def releaseRepo = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
def snapshotRepo = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
url = isReleaseVersion ? releaseRepo : snapshotRepo
credentials {
username = project.hasProperty('ossrhUsername') ? ossrhUsername : "Unknown user"
password = project.hasProperty('ossrhPassword') ? ossrhPassword : "Unknown password"
}
}
}
}

signing {
useGpgCmd()
sign publishing.publications.maven
}

group = 'com.sailpoint'
sourceCompatibility = 9;
targetCompatibility = 9;
2 changes: 1 addition & 1 deletion fastfed-java-sdk/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
* in the user manual at https://docs.gradle.org/5.2.1/userguide/multi_project_builds.html
*/

rootProject.name = 'fastfed-java-sdk'
rootProject.name = 'openid-fastfed-sdk'
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public void start(String applicationServerFastFedMetdataUrl) throws Exception {
* be called because this is what whitelists the provider based on the provider's FastFed metadata. This is
* applicable when this server is acting as the initiating server (the one that will call the remote /start endpoint)
*
* @param type @see fastfed.atlas.model.FastFedHandshakeType
* @param type
* @param account the email account that will be used to perform WebFinger discovery (only for type AUTHENTICATION)
* @param fastfedMetadataEndpoint the fastfed metadata endpoint url (only for type GOVERNANCE)
* @return FastFedStartResponse object with information for the UI to use to kick off the process
Expand Down Expand Up @@ -196,7 +196,7 @@ public void finalizeFastFed(String token) throws Exception {
* and call IDN's API to configure SSO and/or create an app
*
* @param token an undecoded, signed JWT token
* @returns the registration's response JSON
* @return the registration's response JSON
*/
public String handshakeRegister(String token) throws Exception {

Expand Down

0 comments on commit f998751

Please sign in to comment.