From d9e7b5a0a4706669819e91dd19404891f437e6d8 Mon Sep 17 00:00:00 2001 From: Sergey Mashkov Date: Fri, 10 Jul 2015 18:47:46 +0300 Subject: Gradle initial plugin implementation --- .gitignore | 2 + .idea/ant.xml | 13 +- .idea/compiler.xml | 3 +- .idea/copyright/profiles_settings.xml | 4 + .idea/gradle.xml | 17 + .idea/inspectionProfiles/Project_Default.xml | 12 + .idea/inspectionProfiles/profiles_settings.xml | 8 + .idea/libraries/Gradle__junit_junit_4_12.xml | 12 + .../Gradle__org_fusesource_jansi_jansi_1_11.xml | 12 + .../Gradle__org_hamcrest_hamcrest_core_1_3.xml | 12 + ...radle__org_jetbrains_dokka_dokka_fatjar_1_0.xml | 10 + ...ns_kotlin_kotlin_gradle_plugin_0_1_SNAPSHOT.xml | 12 + ...otlin_kotlin_gradle_plugin_api_0_1_SNAPSHOT.xml | 12 + ...etbrains_kotlin_kotlin_runtime_0_1_SNAPSHOT.xml | 12 + ...jetbrains_kotlin_kotlin_stdlib_0_1_SNAPSHOT.xml | 12 + .idea/misc.xml | 5 +- .idea/modules.xml | 3 +- .idea/vcs.xml | 4 +- gradle-plugin/build.gradle | 60 + gradle-plugin/dokka-gradle-plugin.iml | 1476 ++++++++++++++++++++ gradle-plugin/gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 52271 bytes .../gradle/wrapper/gradle-wrapper.properties | 6 + gradle-plugin/gradlew | 164 +++ gradle-plugin/gradlew.bat | 90 ++ gradle-plugin/settings.gradle | 2 + gradle-plugin/src/main/kotlin/logger.kt | 18 + gradle-plugin/src/main/kotlin/main.kt | 97 ++ .../gradle-plugins/org.jetbrains.dokka.properties | 1 + maven-plugin/dokka-maven-plugin.iml | 46 + maven-plugin/maven-plugin.iml | 48 - 30 files changed, 2119 insertions(+), 54 deletions(-) create mode 100644 .idea/copyright/profiles_settings.xml create mode 100644 .idea/gradle.xml create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/libraries/Gradle__junit_junit_4_12.xml create mode 100644 .idea/libraries/Gradle__org_fusesource_jansi_jansi_1_11.xml create mode 100644 .idea/libraries/Gradle__org_hamcrest_hamcrest_core_1_3.xml create mode 100644 .idea/libraries/Gradle__org_jetbrains_dokka_dokka_fatjar_1_0.xml create mode 100644 .idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_gradle_plugin_0_1_SNAPSHOT.xml create mode 100644 .idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_gradle_plugin_api_0_1_SNAPSHOT.xml create mode 100644 .idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_runtime_0_1_SNAPSHOT.xml create mode 100644 .idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_0_1_SNAPSHOT.xml create mode 100644 gradle-plugin/build.gradle create mode 100644 gradle-plugin/dokka-gradle-plugin.iml create mode 100644 gradle-plugin/gradle/wrapper/gradle-wrapper.jar create mode 100644 gradle-plugin/gradle/wrapper/gradle-wrapper.properties create mode 100755 gradle-plugin/gradlew create mode 100644 gradle-plugin/gradlew.bat create mode 100644 gradle-plugin/settings.gradle create mode 100644 gradle-plugin/src/main/kotlin/logger.kt create mode 100644 gradle-plugin/src/main/kotlin/main.kt create mode 100644 gradle-plugin/src/main/resources/META-INF/gradle-plugins/org.jetbrains.dokka.properties create mode 100644 maven-plugin/dokka-maven-plugin.iml delete mode 100644 maven-plugin/maven-plugin.iml diff --git a/.gitignore b/.gitignore index eecbb95c..ecd04811 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ out doc target +build +.gradle \ No newline at end of file diff --git a/.idea/ant.xml b/.idea/ant.xml index c853cb11..764d23e5 100644 --- a/.idea/ant.xml +++ b/.idea/ant.xml @@ -1,6 +1,17 @@ - + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 1f71f978..e22d39e5 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -22,10 +22,11 @@ - + + diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml new file mode 100644 index 00000000..f4aa08e3 --- /dev/null +++ b/.idea/copyright/profiles_settings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml new file mode 100644 index 00000000..adc07ffd --- /dev/null +++ b/.idea/gradle.xml @@ -0,0 +1,17 @@ + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 00000000..710a3bbe --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,12 @@ + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 00000000..8c1e55e8 --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,8 @@ + + + + + \ No newline at end of file diff --git a/.idea/libraries/Gradle__junit_junit_4_12.xml b/.idea/libraries/Gradle__junit_junit_4_12.xml new file mode 100644 index 00000000..d9327061 --- /dev/null +++ b/.idea/libraries/Gradle__junit_junit_4_12.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Gradle__org_fusesource_jansi_jansi_1_11.xml b/.idea/libraries/Gradle__org_fusesource_jansi_jansi_1_11.xml new file mode 100644 index 00000000..1c5611d1 --- /dev/null +++ b/.idea/libraries/Gradle__org_fusesource_jansi_jansi_1_11.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Gradle__org_hamcrest_hamcrest_core_1_3.xml b/.idea/libraries/Gradle__org_hamcrest_hamcrest_core_1_3.xml new file mode 100644 index 00000000..d7610aef --- /dev/null +++ b/.idea/libraries/Gradle__org_hamcrest_hamcrest_core_1_3.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Gradle__org_jetbrains_dokka_dokka_fatjar_1_0.xml b/.idea/libraries/Gradle__org_jetbrains_dokka_dokka_fatjar_1_0.xml new file mode 100644 index 00000000..bf790a6d --- /dev/null +++ b/.idea/libraries/Gradle__org_jetbrains_dokka_dokka_fatjar_1_0.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_gradle_plugin_0_1_SNAPSHOT.xml b/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_gradle_plugin_0_1_SNAPSHOT.xml new file mode 100644 index 00000000..6133495f --- /dev/null +++ b/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_gradle_plugin_0_1_SNAPSHOT.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_gradle_plugin_api_0_1_SNAPSHOT.xml b/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_gradle_plugin_api_0_1_SNAPSHOT.xml new file mode 100644 index 00000000..a6742e50 --- /dev/null +++ b/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_gradle_plugin_api_0_1_SNAPSHOT.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_runtime_0_1_SNAPSHOT.xml b/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_runtime_0_1_SNAPSHOT.xml new file mode 100644 index 00000000..841ef8e4 --- /dev/null +++ b/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_runtime_0_1_SNAPSHOT.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_0_1_SNAPSHOT.xml b/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_0_1_SNAPSHOT.xml new file mode 100644 index 00000000..4664f83f --- /dev/null +++ b/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_0_1_SNAPSHOT.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 6208e987..a5c40e02 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,6 +3,9 @@ + + + - + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml index 3cc41820..669ba41d 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -4,7 +4,8 @@ - + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml index 275077f8..83067447 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -2,6 +2,6 @@ + - - + \ No newline at end of file diff --git a/gradle-plugin/build.gradle b/gradle-plugin/build.gradle new file mode 100644 index 00000000..ddc5a460 --- /dev/null +++ b/gradle-plugin/build.gradle @@ -0,0 +1,60 @@ +group 'org.jetbrains.dokka' +version '0.1-SNAPSHOT' + +buildscript { + ext.kotlin_version = '0.1-SNAPSHOT' + repositories { + mavenCentral() + maven { + url 'http://oss.sonatype.org/content/repositories/snapshots' + } + } + dependencies { + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } +} + +apply plugin: 'java' +apply plugin: 'kotlin' +apply plugin: 'maven-publish' + +sourceCompatibility = 1.6 + +repositories { + maven { + url "file:///${projectDir}/../out/repo" + } + mavenCentral() + maven { + url 'http://oss.sonatype.org/content/repositories/snapshots' + } +} + +dependencies { + testCompile group: 'junit', name: 'junit', version: '4.12' + compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" + compile "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + compile 'org.jetbrains.dokka:dokka-fatjar:1.0' + + compile 'org.fusesource.jansi:jansi:1.11' + + compile gradleApi() + compile localGroovy() +} + +sourceSets { + main.java.srcDirs += 'src/main/kotlin' +} + +task wrapper(type: Wrapper) { + gradleVersion = '2.5' + distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip" +} + +publishing { + publications { + mavenJava(MavenPublication) { + from components.java + } + } +} diff --git a/gradle-plugin/dokka-gradle-plugin.iml b/gradle-plugin/dokka-gradle-plugin.iml new file mode 100644 index 00000000..bf48a145 --- /dev/null +++ b/gradle-plugin/dokka-gradle-plugin.iml @@ -0,0 +1,1476 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +