Skip to content

possible start to gradle conversion #2473

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

Closed
wants to merge 1 commit into from
Closed
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
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,7 @@ hs_err_pid*
dependency-reduced-pom.xml

## GHA Credentials
gha-creds-*.json
gha-creds-*.json

## Gradle
build/
105 changes: 105 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
/*
* This file was generated by the Gradle 'init' task.
*/

plugins {
id 'application'
id 'maven-publish'
}

repositories {
mavenLocal()
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
}

dependencies {
implementation libs.com.networknt.json.schema.validator
implementation libs.com.fasterxml.jackson.core.jackson.core
implementation libs.net.gcardone.junidecode.junidecode
implementation libs.org.owasp.java.file.io
implementation libs.org.jdbi.jdbi3.core
implementation libs.org.jdbi.jdbi3.sqlobject
implementation libs.org.jdbi.jdbi3.gson2
implementation libs.org.jdbi.jdbi3.guava
implementation libs.com.fasterxml.jackson.core.jackson.annotations
implementation libs.org.parboiled.parboiled.java
implementation libs.com.sendgrid.sendgrid.java
implementation libs.org.bouncycastle.bcprov.jdk18on
implementation libs.org.apache.httpcomponents.client5.httpclient5
implementation libs.com.sendgrid.java.http.client
implementation libs.io.sentry.sentry
implementation libs.org.slf4j.slf4j.api
implementation libs.io.dropwizard.dropwizard.json.logging
implementation libs.io.dropwizard.dropwizard.dependencies
implementation libs.io.dropwizard.dropwizard.auth
implementation libs.io.dropwizard.dropwizard.assets
implementation libs.io.dropwizard.dropwizard.http2
implementation libs.org.eclipse.jetty.http2.http2.common
implementation libs.io.dropwizard.dropwizard.client
implementation libs.io.dropwizard.dropwizard.core
implementation libs.io.dropwizard.dropwizard.jdbi3
implementation libs.io.dropwizard.dropwizard.forms
implementation libs.ch.qos.logback.access.common
implementation libs.ch.qos.logback.logback.classic
implementation libs.ch.qos.logback.logback.core
implementation libs.org.liquibase.liquibase.core
implementation libs.com.sun.mail.javax.mail
implementation libs.org.freemarker.freemarker
implementation libs.com.google.guava.guava
implementation libs.org.postgresql.postgresql
implementation libs.com.google.api.client.google.api.client
implementation libs.com.google.cloud.google.cloud.storage
implementation libs.commons.io.commons.io
implementation libs.com.google.apis.google.api.services.oauth2
implementation libs.com.google.inject.guice
implementation libs.com.google.code.gson.gson
implementation libs.org.apache.commons.commons.collections4
implementation libs.org.apache.commons.commons.lang3
implementation libs.org.elasticsearch.client.elasticsearch.rest.client
implementation libs.org.webjars.swagger.ui
implementation libs.commons.validator.commons.validator
implementation libs.com.cloudbees.thirdparty.zendesk.java.client
testImplementation libs.au.com.dius.pact.consumer
testImplementation libs.au.com.dius.pact.provider
testImplementation libs.au.com.dius.pact.consumer.junit5
testImplementation libs.io.dropwizard.dropwizard.testing
testImplementation libs.org.mockito.mockito.core
testImplementation libs.org.mockito.mockito.junit.jupiter
testImplementation libs.org.junit.platform.junit.platform.launcher
testImplementation libs.org.jsoup.jsoup
testImplementation libs.org.testcontainers.postgresql
testImplementation libs.org.testcontainers.mockserver
testImplementation libs.org.mock.server.mockserver.client.java
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}

group = 'org.broadinstitute'
version = '1.0.1'
description = 'Consent Management Services'

publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
}

tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}

tasks.withType(Javadoc) {
options.encoding = 'UTF-8'
}

application {
mainClass = 'org.broadinstitute.consent.http.ConsentApplication'
}
5 changes: 5 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This file was generated by the Gradle 'init' task.
# https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties

org.gradle.configuration-cache=true

120 changes: 120 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
# This file was generated by the Gradle 'init' task.
# https://docs.gradle.org/current/userguide/platforms.html#sub::toml-dependencies-format

[versions]
au-com-dius-pact-consumer = "4.6.17"
au-com-dius-pact-consumer-junit5 = "4.6.17"
au-com-dius-pact-provider = "4.6.17"
ch-qos-logback-access-common = "2.0.3"
ch-qos-logback-logback-classic = "1.5.16"
ch-qos-logback-logback-core = "1.5.16"
com-cloudbees-thirdparty-zendesk-java-client = "1.1.1"
com-fasterxml-jackson-core-jackson-annotations = "2.18.3"
com-fasterxml-jackson-core-jackson-core = "2.18.3"
com-google-api-client-google-api-client = "2.7.2"
com-google-apis-google-api-services-oauth2 = "v2-rev20200213-2.0.0"
com-google-cloud-google-cloud-storage = "2.50.0"
com-google-code-gson-gson = "2.12.1"
com-google-guava-guava = "33.4.5-jre"
com-google-inject-guice = "7.0.0"
com-networknt-json-schema-validator = "1.5.6"
com-sendgrid-java-http-client = "4.5.1"
com-sendgrid-sendgrid-java = "4.10.3"
com-sun-mail-javax-mail = "1.6.2"
commons-io-commons-io = "2.18.0"
commons-validator-commons-validator = "1.9.0"
io-dropwizard-dropwizard-assets = "4.0.11"
io-dropwizard-dropwizard-auth = "4.0.11"
io-dropwizard-dropwizard-client = "4.0.11"
io-dropwizard-dropwizard-core = "4.0.11"
io-dropwizard-dropwizard-dependencies = "4.0.11"
io-dropwizard-dropwizard-forms = "4.0.11"
io-dropwizard-dropwizard-http2 = "4.0.11"
io-dropwizard-dropwizard-jdbi3 = "4.0.11"
io-dropwizard-dropwizard-json-logging = "4.0.11"
io-dropwizard-dropwizard-testing = "4.0.11"
io-sentry-sentry = "8.5.0"
net-gcardone-junidecode-junidecode = "0.5.2"
org-apache-commons-commons-collections4 = "4.4"
org-apache-commons-commons-lang3 = "3.17.0"
org-apache-httpcomponents-client5-httpclient5 = "5.4.2"
org-bouncycastle-bcprov-jdk18on = "1.80"
org-eclipse-jetty-http2-http2-common = "11.0.25"
org-elasticsearch-client-elasticsearch-rest-client = "8.17.3"
org-freemarker-freemarker = "2.3.34"
org-jdbi-jdbi3-core = "3.48.0"
org-jdbi-jdbi3-gson2 = "3.48.0"
org-jdbi-jdbi3-guava = "3.48.0"
org-jdbi-jdbi3-sqlobject = "3.48.0"
org-jsoup-jsoup = "1.19.1"
org-junit-platform-junit-platform-launcher = "1.12.1"
org-liquibase-liquibase-core = "4.30.0"
org-mock-server-mockserver-client-java = "5.15.0"
org-mockito-mockito-core = "5.16.1"
org-mockito-mockito-junit-jupiter = "5.16.1"
org-owasp-java-file-io = "1.0.0"
org-parboiled-parboiled-java = "1.4.1"
org-postgresql-postgresql = "42.7.5"
org-slf4j-slf4j-api = "2.0.17"
org-testcontainers-mockserver = "1.20.6"
org-testcontainers-postgresql = "1.20.6"
org-webjars-swagger-ui = "5.20.1"

[libraries]
au-com-dius-pact-consumer = { module = "au.com.dius.pact:consumer", version.ref = "au-com-dius-pact-consumer" }
au-com-dius-pact-consumer-junit5 = { module = "au.com.dius.pact.consumer:junit5", version.ref = "au-com-dius-pact-consumer-junit5" }
au-com-dius-pact-provider = { module = "au.com.dius.pact:provider", version.ref = "au-com-dius-pact-provider" }
ch-qos-logback-access-common = { module = "ch.qos.logback.access:common", version.ref = "ch-qos-logback-access-common" }
ch-qos-logback-logback-classic = { module = "ch.qos.logback:logback-classic", version.ref = "ch-qos-logback-logback-classic" }
ch-qos-logback-logback-core = { module = "ch.qos.logback:logback-core", version.ref = "ch-qos-logback-logback-core" }
com-cloudbees-thirdparty-zendesk-java-client = { module = "com.cloudbees.thirdparty:zendesk-java-client", version.ref = "com-cloudbees-thirdparty-zendesk-java-client" }
com-fasterxml-jackson-core-jackson-annotations = { module = "com.fasterxml.jackson.core:jackson-annotations", version.ref = "com-fasterxml-jackson-core-jackson-annotations" }
com-fasterxml-jackson-core-jackson-core = { module = "com.fasterxml.jackson.core:jackson-core", version.ref = "com-fasterxml-jackson-core-jackson-core" }
com-google-api-client-google-api-client = { module = "com.google.api-client:google-api-client", version.ref = "com-google-api-client-google-api-client" }
com-google-apis-google-api-services-oauth2 = { module = "com.google.apis:google-api-services-oauth2", version.ref = "com-google-apis-google-api-services-oauth2" }
com-google-cloud-google-cloud-storage = { module = "com.google.cloud:google-cloud-storage", version.ref = "com-google-cloud-google-cloud-storage" }
com-google-code-gson-gson = { module = "com.google.code.gson:gson", version.ref = "com-google-code-gson-gson" }
com-google-guava-guava = { module = "com.google.guava:guava", version.ref = "com-google-guava-guava" }
com-google-inject-guice = { module = "com.google.inject:guice", version.ref = "com-google-inject-guice" }
com-networknt-json-schema-validator = { module = "com.networknt:json-schema-validator", version.ref = "com-networknt-json-schema-validator" }
com-sendgrid-java-http-client = { module = "com.sendgrid:java-http-client", version.ref = "com-sendgrid-java-http-client" }
com-sendgrid-sendgrid-java = { module = "com.sendgrid:sendgrid-java", version.ref = "com-sendgrid-sendgrid-java" }
com-sun-mail-javax-mail = { module = "com.sun.mail:javax.mail", version.ref = "com-sun-mail-javax-mail" }
commons-io-commons-io = { module = "commons-io:commons-io", version.ref = "commons-io-commons-io" }
commons-validator-commons-validator = { module = "commons-validator:commons-validator", version.ref = "commons-validator-commons-validator" }
io-dropwizard-dropwizard-assets = { module = "io.dropwizard:dropwizard-assets", version.ref = "io-dropwizard-dropwizard-assets" }
io-dropwizard-dropwizard-auth = { module = "io.dropwizard:dropwizard-auth", version.ref = "io-dropwizard-dropwizard-auth" }
io-dropwizard-dropwizard-client = { module = "io.dropwizard:dropwizard-client", version.ref = "io-dropwizard-dropwizard-client" }
io-dropwizard-dropwizard-core = { module = "io.dropwizard:dropwizard-core", version.ref = "io-dropwizard-dropwizard-core" }
io-dropwizard-dropwizard-dependencies = { module = "io.dropwizard:dropwizard-dependencies", version.ref = "io-dropwizard-dropwizard-dependencies" }
io-dropwizard-dropwizard-forms = { module = "io.dropwizard:dropwizard-forms", version.ref = "io-dropwizard-dropwizard-forms" }
io-dropwizard-dropwizard-http2 = { module = "io.dropwizard:dropwizard-http2", version.ref = "io-dropwizard-dropwizard-http2" }
io-dropwizard-dropwizard-jdbi3 = { module = "io.dropwizard:dropwizard-jdbi3", version.ref = "io-dropwizard-dropwizard-jdbi3" }
io-dropwizard-dropwizard-json-logging = { module = "io.dropwizard:dropwizard-json-logging", version.ref = "io-dropwizard-dropwizard-json-logging" }
io-dropwizard-dropwizard-testing = { module = "io.dropwizard:dropwizard-testing", version.ref = "io-dropwizard-dropwizard-testing" }
io-sentry-sentry = { module = "io.sentry:sentry", version.ref = "io-sentry-sentry" }
net-gcardone-junidecode-junidecode = { module = "net.gcardone.junidecode:junidecode", version.ref = "net-gcardone-junidecode-junidecode" }
org-apache-commons-commons-collections4 = { module = "org.apache.commons:commons-collections4", version.ref = "org-apache-commons-commons-collections4" }
org-apache-commons-commons-lang3 = { module = "org.apache.commons:commons-lang3", version.ref = "org-apache-commons-commons-lang3" }
org-apache-httpcomponents-client5-httpclient5 = { module = "org.apache.httpcomponents.client5:httpclient5", version.ref = "org-apache-httpcomponents-client5-httpclient5" }
org-bouncycastle-bcprov-jdk18on = { module = "org.bouncycastle:bcprov-jdk18on", version.ref = "org-bouncycastle-bcprov-jdk18on" }
org-eclipse-jetty-http2-http2-common = { module = "org.eclipse.jetty.http2:http2-common", version.ref = "org-eclipse-jetty-http2-http2-common" }
org-elasticsearch-client-elasticsearch-rest-client = { module = "org.elasticsearch.client:elasticsearch-rest-client", version.ref = "org-elasticsearch-client-elasticsearch-rest-client" }
org-freemarker-freemarker = { module = "org.freemarker:freemarker", version.ref = "org-freemarker-freemarker" }
org-jdbi-jdbi3-core = { module = "org.jdbi:jdbi3-core", version.ref = "org-jdbi-jdbi3-core" }
org-jdbi-jdbi3-gson2 = { module = "org.jdbi:jdbi3-gson2", version.ref = "org-jdbi-jdbi3-gson2" }
org-jdbi-jdbi3-guava = { module = "org.jdbi:jdbi3-guava", version.ref = "org-jdbi-jdbi3-guava" }
org-jdbi-jdbi3-sqlobject = { module = "org.jdbi:jdbi3-sqlobject", version.ref = "org-jdbi-jdbi3-sqlobject" }
org-jsoup-jsoup = { module = "org.jsoup:jsoup", version.ref = "org-jsoup-jsoup" }
org-junit-platform-junit-platform-launcher = { module = "org.junit.platform:junit-platform-launcher", version.ref = "org-junit-platform-junit-platform-launcher" }
org-liquibase-liquibase-core = { module = "org.liquibase:liquibase-core", version.ref = "org-liquibase-liquibase-core" }
org-mock-server-mockserver-client-java = { module = "org.mock-server:mockserver-client-java", version.ref = "org-mock-server-mockserver-client-java" }
org-mockito-mockito-core = { module = "org.mockito:mockito-core", version.ref = "org-mockito-mockito-core" }
org-mockito-mockito-junit-jupiter = { module = "org.mockito:mockito-junit-jupiter", version.ref = "org-mockito-mockito-junit-jupiter" }
org-owasp-java-file-io = { module = "org.owasp:java-file-io", version.ref = "org-owasp-java-file-io" }
org-parboiled-parboiled-java = { module = "org.parboiled:parboiled-java", version.ref = "org-parboiled-parboiled-java" }
org-postgresql-postgresql = { module = "org.postgresql:postgresql", version.ref = "org-postgresql-postgresql" }
org-slf4j-slf4j-api = { module = "org.slf4j:slf4j-api", version.ref = "org-slf4j-slf4j-api" }
org-testcontainers-mockserver = { module = "org.testcontainers:mockserver", version.ref = "org-testcontainers-mockserver" }
org-testcontainers-postgresql = { module = "org.testcontainers:postgresql", version.ref = "org-testcontainers-postgresql" }
org-webjars-swagger-ui = { module = "org.webjars:swagger-ui", version.ref = "org-webjars-swagger-ui" }
7 changes: 7 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading
Loading