Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 0 additions & 69 deletions build.gradle

This file was deleted.

76 changes: 76 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
plugins {
idea
`kotlin-dsl`
`groovy`
id("com.gradle.plugin-publish") version "1.2.1"
id("com.palantir.git-version") version "3.1.0"
`maven-publish`
`java-gradle-plugin`
}

val gitVersion: groovy.lang.Closure<String> by extra
version = gitVersion()
group = "com.jetbrains.python"

java {
sourceCompatibility = JavaVersion.VERSION_21
}

kotlin {
jvmToolchain(21)
}

repositories {
mavenCentral()
}

tasks.withType<Test>() {
maxParallelForks = 8
}

publishing {
repositories {
maven {
url = uri("../mvn_repo")
}
}
}

dependencies {
implementation(gradleApi())

testImplementation(gradleTestKit())
testImplementation(platform("org.junit:junit-bom:5.10.3"))
testImplementation("org.junit.jupiter:junit-jupiter")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")

testImplementation("org.spockframework:spock-core:2.4-M4-groovy-3.0") {
exclude(module = "groovy-all")
}
}

gradlePlugin {
website.set("https://github.com/JetBrains/gradle-python-envs")
vcsUrl.set("https://github.com/JetBrains/gradle-python-envs")
plugins {
create("pythonEnvsPlugin") {
id = "com.jetbrains.python.envs"
implementationClass = "com.jetbrains.python.envs.PythonEnvsPlugin"
displayName = "Gradle Python Envs plugin"
description = "Gradle plugin to install different Python environments"
tags.set(listOf("python", "miniconda", "conda"))
}
}
}

tasks.test {
useJUnitPlatform()
testLogging {
showCauses = true
showExceptions = true
showStackTraces = true
showStandardStreams = true

events("started", "passed", "skipped", "failed", "standard_out", "standard_error")
}
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
6 changes: 4 additions & 2 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

186 changes: 94 additions & 92 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion settings.gradle

This file was deleted.

1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = "gradle-python-envs"
Loading