Skip to content

Commit

Permalink
feat(sql): Conditionally allow MySQL Connector to be excluded from th…
Browse files Browse the repository at this point in the history
…e build (#4043)
  • Loading branch information
scottfrederick authored and cfieber committed Sep 19, 2019
1 parent f255ee0 commit 18c66e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clouddriver-sql-mysql/clouddriver-sql-mysql.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ dependencies {
implementation project(":cats:cats-sql")
implementation project(":clouddriver-sql")

implementation "mysql:mysql-connector-java:8.0.12"
runtimeOnly "mysql:mysql-connector-java:8.0.12"
}
5 changes: 4 additions & 1 deletion clouddriver-web/clouddriver-web.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ dependencies {
implementation project(":clouddriver-artifacts")
implementation project(":clouddriver-core")
implementation project(":clouddriver-security")
implementation project(":clouddriver-sql-mysql")
implementation project(":clouddriver-sql")

if (!rootProject.hasProperty("excludeSqlDrivers")) {
runtimeOnly(project(":clouddriver-sql-mysql"))
}

compileOnly "org.projectlombok:lombok"
annotationProcessor "org.projectlombok:lombok"
Expand Down

0 comments on commit 18c66e4

Please sign in to comment.