Skip to content

Commit

Permalink
kotlin repo setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mlcohen committed Dec 1, 2022
0 parents commit dfa6977
Show file tree
Hide file tree
Showing 209 changed files with 500 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.idea/
.gradle/
gradle/
17 changes: 17 additions & 0 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* This file was generated by the Gradle 'init' task.
*/

plugins {
// Support convention plugins written in Kotlin. Convention plugins are build scripts in 'src/main' that automatically become available as plugins in the main build.
`kotlin-dsl`
}

repositories {
// Use the plugin portal to apply community plugins in convention plugins.
gradlePluginPortal()
}

dependencies {
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin")
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* Precompiled [org.adventofcode.kotlin-application-conventions.gradle.kts][Org_adventofcode_kotlin_application_conventions_gradle] script plugin.
*
* @see Org_adventofcode_kotlin_application_conventions_gradle
*/
class Org_adventofcode_kotlinApplicationConventionsPlugin : org.gradle.api.Plugin<org.gradle.api.Project> {
override fun apply(target: org.gradle.api.Project) {
try {
Class
.forName("Org_adventofcode_kotlin_application_conventions_gradle")
.getDeclaredConstructor(org.gradle.api.Project::class.java, org.gradle.api.Project::class.java)
.newInstance(target, target)
} catch (e: java.lang.reflect.InvocationTargetException) {
throw e.targetException
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* Precompiled [org.adventofcode.kotlin-common-conventions.gradle.kts][Org_adventofcode_kotlin_common_conventions_gradle] script plugin.
*
* @see Org_adventofcode_kotlin_common_conventions_gradle
*/
class Org_adventofcode_kotlinCommonConventionsPlugin : org.gradle.api.Plugin<org.gradle.api.Project> {
override fun apply(target: org.gradle.api.Project) {
try {
Class
.forName("Org_adventofcode_kotlin_common_conventions_gradle")
.getDeclaredConstructor(org.gradle.api.Project::class.java, org.gradle.api.Project::class.java)
.newInstance(target, target)
} catch (e: java.lang.reflect.InvocationTargetException) {
throw e.targetException
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* Precompiled [org.adventofcode.kotlin-library-conventions.gradle.kts][Org_adventofcode_kotlin_library_conventions_gradle] script plugin.
*
* @see Org_adventofcode_kotlin_library_conventions_gradle
*/
class Org_adventofcode_kotlinLibraryConventionsPlugin : org.gradle.api.Plugin<org.gradle.api.Project> {
override fun apply(target: org.gradle.api.Project) {
try {
Class
.forName("Org_adventofcode_kotlin_library_conventions_gradle")
.getDeclaredConstructor(org.gradle.api.Project::class.java, org.gradle.api.Project::class.java)
.newInstance(target, target)
} catch (e: java.lang.reflect.InvocationTargetException) {
throw e.targetException
}
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@




plugins {

id("org.adventofcode.kotlin-common-conventions")


application
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@




plugins {

id("org.jetbrains.kotlin.jvm")
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@




plugins {

id("org.adventofcode.kotlin-common-conventions")


`java-library`
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gradle.kotlin.dsl.accessors._14ef9db424058dcaa780036f4194782a.*
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gradle.kotlin.dsl.accessors._ba99aed39ca7d0b39b88b6122195cc59.*
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gradle.kotlin.dsl.accessors._6d448f0c29aeb126f175214a8797e9ec.*
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gradle.kotlin.dsl.plugins._c68765895a182e6a52403e6c11ca77c5.*
1 change: 1 addition & 0 deletions buildSrc/build/kotlin/buildSrcjar-classes.txt

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0�.�.�-
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�=�;
Binary file not shown.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�g�,��D��&�C��G
Binary file not shown.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�M
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
404
0
Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�?�@
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�@�"�)
Binary file not shown.
Binary file not shown.
Binary file added buildSrc/build/kotlin/compileKotlin/last-build.bin
Binary file not shown.
Binary file added buildSrc/build/libs/buildSrc.jar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
implementation-class=Org_adventofcode_kotlinApplicationConventionsPlugin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
implementation-class=Org_adventofcode_kotlinCommonConventionsPlugin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
implementation-class=Org_adventofcode_kotlinLibraryConventionsPlugin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
implementation-classpath=/Users/michaelcohen/projects/advent-of-code-kotlin-2022/buildSrc/build/classes/java/main\:/Users/michaelcohen/projects/advent-of-code-kotlin-2022/buildSrc/build/classes/groovy/main\:/Users/michaelcohen/projects/advent-of-code-kotlin-2022/buildSrc/build/classes/kotlin/main\:/Users/michaelcohen/projects/advent-of-code-kotlin-2022/buildSrc/build/resources/main\:/Users/michaelcohen/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-gradle-plugin/1.4.31/efd48d079489836346cff69c66c77c81e16985d4/kotlin-gradle-plugin-1.4.31.jar\:/Users/michaelcohen/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-gradle-plugin-api/1.4.31/63692dfe4484c4f989319cf3429b357c17f772ae/kotlin-gradle-plugin-api-1.4.31.jar\:/Users/michaelcohen/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-gradle-plugin-model/1.4.31/5ef6cc1555b3cafdc5d1edbb932a823289fd5a56/kotlin-gradle-plugin-model-1.4.31.jar\:/Users/michaelcohen/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-util-klib/1.4.31/2c545be047c9863ff560e292c37d00a68925d289/kotlin-util-klib-1.4.31.jar\:/Users/michaelcohen/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-annotation-processing-gradle/1.4.31/1d7a4a1aaafe06e8b62bfb5fc04f66c4afeb7281/kotlin-annotation-processing-gradle-1.4.31.jar\:/Users/michaelcohen/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-android-extensions/1.4.31/5837534e7d15215c816bccc74543737b2c0e82ce/kotlin-android-extensions-1.4.31.jar\:/Users/michaelcohen/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-compiler-runner/1.4.31/8be54c7f3ff7e46e7585e6e756f86c780b3d5e1e/kotlin-compiler-runner-1.4.31.jar\:/Users/michaelcohen/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-compiler-embeddable/1.4.31/6451ea797cef544e81f507b0d9959cd97ae09c0/kotlin-compiler-embeddable-1.4.31.jar\:/Users/michaelcohen/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-scripting-compiler-embeddable/1.4.31/f279e1c63640df6e24371ae9e009ddbe1ad8b723/kotlin-scripting-compiler-embeddable-1.4.31.jar\:/Users/michaelcohen/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-scripting-compiler-impl-embeddable/1.4.31/12bd0e32075f54b774975d3e14715017fc7cb0c0/kotlin-scripting-compiler-impl-embeddable-1.4.31.jar\:/Users/michaelcohen/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-daemon-client/1.4.31/419157134d513c69d74693334c39f0550b53f546/kotlin-daemon-client-1.4.31.jar\:/Users/michaelcohen/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-reflect/1.4.31/63db9d66c3d20f7b8f66196e7ba86969daae8b8a/kotlin-reflect-1.4.31.jar\:/Users/michaelcohen/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-util-io/1.4.31/b3c8349cb6c6f1ca2c82013d375ca7148337ee1d/kotlin-util-io-1.4.31.jar\:/Users/michaelcohen/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-scripting-jvm/1.4.31/90f94e43428b14e99123eea93411d2b8da9aa72c/kotlin-scripting-jvm-1.4.31.jar\:/Users/michaelcohen/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-scripting-common/1.4.31/6c072554c2d163012478a93278b208c7228ad9a4/kotlin-scripting-common-1.4.31.jar\:/Users/michaelcohen/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-coroutines-core/1.3.8/f62be6d4cbf27781c2969867b4ed952f38378492/kotlinx-coroutines-core-1.3.8.jar\:/Users/michaelcohen/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.4.31/a58e0fb9812a6a93ca24b5da75e4b5a0cb89c957/kotlin-stdlib-1.4.31.jar\:/Users/michaelcohen/.gradle/caches/modules-2/files-2.1/com.google.code.gson/gson/2.8.6/9180733b7df8542621dc12e21e87557e8c99b8cb/gson-2.8.6.jar\:/Users/michaelcohen/.gradle/caches/modules-2/files-2.1/de.undercouch/gradle-download-task/4.0.2/2aaf2b081cd0dd5b3cf25fde69a20b043dd46fbd/gradle-download-task-4.0.2.jar\:/Users/michaelcohen/.gradle/caches/modules-2/files-2.1/com.github.gundy/semver4j/0.16.4/de8c77583e97bbbd3cdbe5f406b583e9b081ff56/semver4j-0.16.4.jar\:/Users/michaelcohen/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.4.31/6dd50665802f54ba9bc3f70ecb20227d1bc81323/kotlin-stdlib-common-1.4.31.jar\:/Users/michaelcohen/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/13.0/919f0dfe192fb4e063e7dacadee7f8bb9a2672a9/annotations-13.0.jar\:/Users/michaelcohen/.gradle/caches/modules-2/files-2.1/org.antlr/antlr4-runtime/4.5.2-1/7fe31fde811943a1970cc97359557c57747026ef/antlr4-runtime-4.5.2-1.jar\:/Users/michaelcohen/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-script-runtime/1.4.31/183616b52cfb8ddaa8a2a15bf926e87dfcddcde3/kotlin-script-runtime-1.4.31.jar\:/Users/michaelcohen/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-daemon-embeddable/1.4.31/10faf8ac3dd5975ed972b2bc395b4ffc7ffde246/kotlin-daemon-embeddable-1.4.31.jar\:/Users/michaelcohen/.gradle/caches/modules-2/files-2.1/org.jetbrains.intellij.deps/trove4j/1.0.20181211/216c2e14b070f334479d800987affe4054cd563f/trove4j-1.0.20181211.jar\:/Users/michaelcohen/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-build-common/1.4.31/10e4800d84cb94d26de22ccb4db7aebe7aea1b38/kotlin-build-common-1.4.31.jar
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
implementation-class=Org_adventofcode_kotlinApplicationConventionsPlugin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
implementation-class=Org_adventofcode_kotlinCommonConventionsPlugin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
implementation-class=Org_adventofcode_kotlinLibraryConventionsPlugin
2 changes: 2 additions & 0 deletions buildSrc/build/tmp/jar/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Manifest-Version: 1.0

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* This file was generated by the Gradle 'init' task.
*/

plugins {
// Apply the common convention plugin for shared build configuration between library and application projects.
id("org.adventofcode.kotlin-common-conventions")

// Apply the application plugin to add support for building a CLI application in Java.
application
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
* This file was generated by the Gradle 'init' task.
*/

plugins {
// Apply the org.jetbrains.kotlin.jvm Plugin to add support for Kotlin.
id("org.jetbrains.kotlin.jvm")
}

repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}

dependencies {
constraints {
// Define dependency versions as constraints
implementation("org.apache.commons:commons-text:1.9")

implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
}

// Align versions of all Kotlin components
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))

// Use the Kotlin JDK 8 standard library.
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")

// Align versions of all Kotlin components
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))

// Use JUnit Jupiter for testing.
testImplementation("org.junit.jupiter:junit-jupiter:5.7.2")
}

tasks.test {
// Use JUnit Platform for unit tests.
useJUnitPlatform()
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* This file was generated by the Gradle 'init' task.
*/

plugins {
// Apply the common convention plugin for shared build configuration between library and application projects.
id("org.adventofcode.kotlin-common-conventions")

// Apply the java-library plugin for API and implementation separation.
`java-library`
}
16 changes: 16 additions & 0 deletions day01/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* This file was generated by the Gradle 'init' task.
*/

plugins {
id("org.adventofcode.kotlin-application-conventions")
}

dependencies {

}

application {
// Define the main class for the application.
mainClass.set("org.aoc.AppKt")
}
Binary file not shown.
Binary file added day01/build/classes/kotlin/main/org/aoc/AppKt.class
Binary file not shown.
Binary file added day01/build/kotlin/compileKotlin/build-history.bin
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
1
0
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added day01/build/kotlin/compileKotlin/last-build.bin
Binary file not shown.
Empty file.
5 changes: 5 additions & 0 deletions day01/src/main/kotlin/org/aoc/App.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package org.aoc

fun main() {
println("Hello")
}
Empty file.
Loading

0 comments on commit dfa6977

Please sign in to comment.