Skip to content
Merged
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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
out/
.bsp
.idea
.cursor
.metals
.vscode
generate.sh
2 changes: 1 addition & 1 deletion .mill-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.6
1.1.7
18 changes: 14 additions & 4 deletions build.mill.scala → build.mill
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//| mvnDeps:
//| - io.github.alexarchambault.mill::mill-native-image::0.2.4
//| - io.github.alexarchambault.mill::mill-native-image-upload:0.2.4
//| - io.github.alexarchambault.mill::mill-native-image::0.2.6
//| - io.github.alexarchambault.mill::mill-native-image-upload:0.2.6
//| - com.goyeau::mill-scalafix::0.6.0
//| - com.lumidion::sonatype-central-client-requests:0.6.0
package build
Expand All @@ -22,7 +22,7 @@ object Deps {
def bouncycastle = "1.84"
def caseApp = "2.1.0"
def coursierPublish = "0.4.4"
def coursierVersion = "2.1.25-M23"
def coursierVersion = "2.1.25-M25"
def graalVmVersion = "22.3.1"
def graalVmId = s"graalvm-java17:$graalVmVersion"
def expecty = "0.17.1"
Expand Down Expand Up @@ -94,9 +94,19 @@ trait CliNativeImage extends NativeImage {
override def nativeImageMainClass: T[String] = Task {
`native-cli`.mainClass().getOrElse(sys.error("no main class found"))
}
private def bouncycastleRerunClasses: List[String] = List(
"org.bouncycastle.jcajce.provider.drbg.DRBG$Default",
"org.bouncycastle.jcajce.provider.drbg.DRBG$NonceAndIV",
"org.bouncycastle.jcajce.provider.drbg.DRBG",
"org.bouncycastle.jcajce.provider.drbg.EntropyDaemon",
"org.bouncycastle.crypto.CryptoServicesRegistrar",
"org.bouncycastle.crypto.macs.HMac",
"org.bouncycastle.util.Properties",
"org.bouncycastle.util.Strings"
)
override def nativeImageOptions: T[Seq[String]] = super.nativeImageOptions() ++ Seq(
"--no-fallback",
"--rerun-class-initialization-at-runtime=org.bouncycastle.jcajce.provider.drbg.DRBG$Default,org.bouncycastle.jcajce.provider.drbg.DRBG$NonceAndIV"
s"--rerun-class-initialization-at-runtime=${bouncycastleRerunClasses.mkString(",")}"
)

def nameSuffix = ""
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package build.project.publish
import com.lumidion.sonatype.central.client.core.{PublishingType, SonatypeCredentials}
import mill.javalib.publish.{PublishingType, SonatypeCredentials}

import mill._
import mill.util.VcsVersion
Expand Down
Loading