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。

964 B
Raw Blame
configurations {
    h2V1
    h2V2
    h2V3
}

dependencies {
    h2V1 'com.h2database:h2:1.4.200'
    h2V2 'com.h2database:h2:2.1.214'
    h2V3 'com.h2database:h2:2.4.240'
    testImplementation 'com.google.code.gson:gson:2.15.0'
}

tasks.named('processResources') {
    from(configurations.h2V1) {
        into 'drivers'
        rename { 'h2-1.4.200.jar' }
    }
    from(configurations.h2V2) {
        into 'drivers'
        rename { 'h2-2.1.214.jar' }
    }
    from(configurations.h2V3) {
        into 'drivers'
        rename { 'h2-2.4.240.jar' }
    }
}

tasks.named('shadowJar') {
    manifest {
        attributes('Agent-Label': 'H2', 'Main-Class': 'com.dbx.agent.h2.H2Agent')
    }
}

tasks.named('test') {
    dependsOn tasks.named('shadowJar')
    doFirst {
        systemProperty 'dbx.h2.agent.jar', tasks.named('shadowJar').get().archiveFile.get().asFile.absolutePath
        systemProperty 'dbx.h2.v1.driver.jar', configurations.h2V1.asPath
    }
}