Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

1.4 KB
Raw Blame
dependencies {
    // Google publishes an officially shaded fat jar for the Spanner JDBC driver. It already bundles
    // gRPC/protobuf/netty with relocated packages, which keeps shadowJar free of the relocation and
    // META-INF/services conflicts a plain dependency tree would introduce. The transitive tree is
    // dropped because the bundle already contains it, and resolving it would both duplicate every
    // shaded class and upgrade the Gson version the shared agent runtime is built against.
    implementation('com.google.cloud:google-cloud-spanner-jdbc:2.47.0:single-jar-with-dependencies') {
        transitive = false
    }
}

tasks.named('shadowJar') {
    dependencies {
        exclude(dependency('com.google.code.gson:gson'))
        exclude(dependency('com.google.errorprone:error_prone_annotations'))
    }
    // The published fat jar still carries stale BouncyCastle signature files (META-INF/BC2048KE.SF
    // and its .DSA). Their digests no longer match the rewritten manifest, so keeping them makes the
    // JVM fail with "SecurityException: Invalid signature file digest for Manifest main attributes".
    exclude 'META-INF/*.SF'
    exclude 'META-INF/*.DSA'
    exclude 'META-INF/*.RSA'
    exclude 'META-INF/*.EC'
    mergeServiceFiles()
    manifest {
        attributes(
            'Agent-Label': 'Google Cloud Spanner',
            'Main-Class': 'com.dbx.agent.spanner.SpannerAgent'
        )
    }
}