Prepare for other years
This commit is contained in:
+3
-3
@@ -1,3 +1,5 @@
|
||||
import java.io.File
|
||||
import java.time.LocalDateTime
|
||||
import kong.unirest.Unirest
|
||||
import org.gradle.api.GradleException
|
||||
import org.gradle.api.Plugin
|
||||
@@ -5,15 +7,13 @@ import org.gradle.api.Project
|
||||
import org.gradle.api.tasks.SourceSetContainer
|
||||
import org.gradle.kotlin.dsl.create
|
||||
import org.gradle.kotlin.dsl.getByType
|
||||
import java.io.File
|
||||
import java.time.LocalDateTime
|
||||
|
||||
open class AdventOfCodeExtension {
|
||||
var session: String? = null
|
||||
var year: Int = 2020
|
||||
}
|
||||
|
||||
class AdventOfCodePlugin : Plugin<Project> {
|
||||
class AdventOfCodeDownloaderPlugin : Plugin<Project> {
|
||||
override fun apply(project: Project) {
|
||||
project.tasks.create("aoc") {
|
||||
group = "Advent of Code"
|
||||
+1
@@ -0,0 +1 @@
|
||||
implementation-class=AdventOfCodeDownloaderPlugin
|
||||
@@ -1 +0,0 @@
|
||||
implementation-class=AdventOfCodePlugin
|
||||
Reference in New Issue
Block a user