Skip to content

Commit

Permalink
Add application plugin
Browse files Browse the repository at this point in the history
The app can run using ./gradlew run --args="before.txt after.txt"
  • Loading branch information
ahmedre committed Jul 4, 2023
1 parent f90793d commit e852c3f
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
buildscript {
dependencies {
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.20'
repositories {
mavenCentral()
}
}

apply plugin: 'org.jetbrains.kotlin.jvm'
plugins {
id 'org.jetbrains.kotlin.jvm' version "1.8.20"
id 'application'
}

application {
mainClass = 'com.careem.gradle.dependencies.DependencyTreeTldr'
}

configurations {
r8
Expand Down Expand Up @@ -88,11 +95,6 @@ artifacts {
archives file: binaryFile, name: 'binary', type: 'jar', builtBy: binaryJar, classifier: 'binary'
}

buildscript {
repositories {
mavenCentral()
}
}
repositories {
mavenCentral()
google()
Expand Down

0 comments on commit e852c3f

Please sign in to comment.