Skip to content

Commit

Permalink
Add module test.scalamod so we can play as '$ mill -i test.scalamod.c…
Browse files Browse the repository at this point in the history
…onsole'
  • Loading branch information
swaldman committed Feb 25, 2024
1 parent 7fc8de7 commit 1c2a895
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,13 @@ object c3p0 extends RootModule with JavaModule with PublishModule {
)
)
}
// just to give ourselves the command `$ mill -i test.scalamod.console`
object scalamod extends ScalaModule {
override def moduleDeps = Seq(c3p0.test)
override def scalaVersion = "3.3.1"
override def runClasspath = T{ c3p0.test.runClasspath() }
override def forkArgs = T { c3p0.test.forkArgs() }
}
}

override def pomSettings = T {
Expand Down
7 changes: 4 additions & 3 deletions test/resources-local/c3p0.properties
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
c3p0.testConnectionOnCheckout=true
#c3p0.testConnectionOnCheckin=true
#c3p0.dataSourceName=poop
#c3p0.minPoolSize=10
#c3p0.initialPoolSize=10
#c3p0.minPoolSize=0
#c3p0.maxPoolSize=40
#c3p0.checkoutTimeout=2000
#c3p0.connectionIsValidTimeout=5
#c3p0.idleConnectionTestPeriod=30
#c3p0.idleConnectionTestPeriod=1
#c3p0.maxConnectionAge=10
#c3p0.maxIdleTime=2
#c3p0.maxIdleTimeExcessConnections=1
#c3p0.maxIdleTimeExcessConnections=60
#c3p0.propertyCycle=1
#c3p0.numHelperThreads=10
#c3p0.unreturnedConnectionTimeout=15
Expand Down Expand Up @@ -38,7 +39,7 @@ c3p0.testConnectionOnCheckout=true
#c3p0.taskRunnerFactoryClassName=com.mchange.v2.c3p0.FixedThreadPoolExecutorTaskRunnerFactory
#c3p0.taskRunnerFactoryClassName=com.mchange.v2.c3p0.loom.VirtualThreadPerTaskExecutorTaskRunnerFactory

#c3p0.jdbcUrl=
#c3p0.jdbcUrl=jdbc:postgresql://localhost:5432/c3p0
#c3p0.driverClass=
#c3p0.user=
#c3p0.password=
Expand Down

0 comments on commit 1c2a895

Please sign in to comment.