Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ryarnyah/querydsl-gradle-plugin

Port of QueryDSL maven plugin to Gradle
https://github.com/ryarnyah/querydsl-gradle-plugin

gradle-plugin kotlin querydsl querydsl-generator querydsl-jpa querydsl-maven-plugin querydsl-sql

Last synced: 15 days ago
JSON representation

Port of QueryDSL maven plugin to Gradle

Awesome Lists containing this project

README

        

# QueryDSL Gradle Plugin

Port of [QueryDSL](https://github.com/querydsl/querydsl) Maven plugin for Gradle.

## HowTo To use
```kotlin
plugins {
//...
id("com.github.ryarnyah.querydsl") version "0.0.3"
}

tasks {
queryDslMetadataExport {
jdbcDriver = "org.h2.Driver"
jdbcUser = "sa"
jdbcPassword = ""
jdbcUrl = "jdbc:h2:./test;AUTO_SERVER=TRUE"
packageName = "com.example.querydsl"

exportBeans = true
exportTables = true
}
}
```

## Tasks supported
### queryDslMetadataExport
```kotlin
tasks {
queryDslMetadataExport {
jdbcDriver = "org.h2.Driver"
jdbcUser = "sa"
jdbcPassword = ""
jdbcUrl = "jdbc:h2:./test;AUTO_SERVER=TRUE"
packageName = "com.example.querydsl"

exportBeans = true
exportTables = true
}
}
```
### queryDslJdoExport
```kotlin
tasks {
queryDslJdoExport {
packages = arrayOf("com.example.test")
}
}
```
### queryDslJpaExport
```kotlin
tasks {
queryDslJpaExport {
packages = arrayOf("com.example.test")
}
}
```
### queryDslGenericExport
```kotlin
tasks {
queryDslGenericExport {
packages = arrayOf("com.example.test")
}
}
```

## Current status
- [X] Support metadata export
- [X] Experimental support for other export tasks