forked from fhermansson/assertj-generator-gradle-plugin
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
executable file
·102 lines (87 loc) · 2.56 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
buildscript {
ext.kotlin_version = '1.4.31'
ext.dokka_version = '0.10.0'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:${dokka_version}"
}
}
plugins {
id 'java-gradle-plugin'
id "com.gradle.plugin-publish" version "0.12.0"
id 'org.jmailen.kotlinter' version '3.3.0'
}
group 'com.github.dimamura'
version '1.1.3-SNAPSHOT.0.6'
apply plugin: 'kotlin'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'org.jetbrains.dokka'
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven {
url ('https://dl.bintray.com/kotlin/dokka')
}
}
dependencies {
implementation("org.assertj:assertj-assertions-generator:2.2.1") {
exclude module: 'logback-classic'
}
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
}
dokka {
outputFormat = "javadoc"
}
gradlePlugin {
plugins {
assertjGenerator {
id = 'com.github.dimamura.assertj-generator'
implementationClass = 'com.github.fhermansson.gradle.assertj.plugin.AssertjGeneratorPlugin'
}
}
}
pluginBundle {
website = 'https://github.com/dimamura/assertj-generator-gradle-plugin'
vcsUrl = 'https://github.com/dimamura/assertj-generator-gradle-plugin'
description = 'Generate Assertj assertion classes. (forked from com.github.fhermansson.assertj-generator, update dependencies include assertj-assertions-generator 2.2.0.)'
tags = ['code-generation', 'assertj', 'java']
plugins {
assertjGenerator {
id = 'com.github.dimamura.assertj-generator'
displayName = 'Assertj Generator plugin'
}
}
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/dimamura/assertj-generator-gradle-plugin")
credentials {
username = project.hasProperty("GITHUB_USER") ? GITHUB_USER : ''
password = project.hasProperty("GITHUB_TOKEN") ? GITHUB_TOKEN : ''
}
}
}
publications {
githubPackageRegistry(MavenPublication) {
groupId = 'com.github.dimamura'
artifactId = 'assertj-gradle-plugin'
from(components.java)
}
}
}
afterEvaluate {
javadoc.enabled = false
publishPluginJavaDocsJar.from(dokka)
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}