Tlms Gaming
07/16/2024, 10:02 AMEstevan Fick
07/16/2024, 11:13 AMASM Instrumentation process wasn't able to resolve some classes, this means that
the instrumented classes might contain corrupt stack frames
I have no idea where to start to look. Full error on the 🧵Virendra Velingkar
07/16/2024, 12:08 PMTimur Abdyraev
07/16/2024, 12:28 PMincludeBuild
. I have internal plugins in build-logic and public plugins ( ones I want to publish ), the problem is that if I apply gradle-publish plugin to my build-logic, it is going to publish all the plugins to Gradle Plugin Portal ( because all of the plugins will have their pluginMarkers ). In order to avoid that I have to create separate module just for those two plugins. I know one solution and this solution is to still have just one module and publish all of them but Gradle Plugin Portal team will reject internal plugins due to lack of description and 0 usability of plugins, because they are internal and just apply some common libraries and plugins themselves. I would be glad if you provide me with another solution. Here is the GitHub repository to check this out https://github.com/Timbermir/clean-wizard/tree/2.0.0Chris Lee
07/17/2024, 12:19 AMAdel Kharma
07/17/2024, 5:27 AMAdel Kharma
07/17/2024, 5:32 AMTanish Ranjan
07/17/2024, 8:13 AMDaniel Pardo
07/17/2024, 9:20 AMbuild.gradle
file, the custom configuration works to resolve a single dependency, that is used by a custom task to unzip its content and move some webapp static files to a folder before compiling the final application.
After spending hours and hours doing multiple tries, I found the root issue, the dependency of the custom configuration is resolved if I configure the repository statically in project.repositories{} (from the plugin nor the build.gradle
's project file), but it fails (401 Auth error) if the repository is configured from project.afterEvaluate{}
, and I need to configure those repositories from inside afterEvaluate
cause there is a Gradle extension with dynamic data of those repositories configured at the `build.gradle`'s project level.
Any clue, help, or something that I could do? thank youJavi
07/17/2024, 1:42 PMNamedDomainObjectCollection
?
This is returning a list with only metadata
as target, but if I use configureEach
, I know there are more targets
the<KotlinMultiplatformExtension>().targets.map(KotlinTarget::getName)
Harshal Verma
07/17/2024, 4:01 PMFAILURE: Build failed with an exception.
* What went wrong:
Cannot provide multiple default versions for the same plugin.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at <https://help.gradle.org>
BUILD FAILED in 364ms
Can someone help me with it please.夷则
07/18/2024, 1:04 AMGiuseppe Barbieri
07/18/2024, 5:21 AM// wrong, self-references only supported via #update()
property.set(property.map { "$it and more" })
which update()
does it refer to?Abhinav Varshney
07/19/2024, 12:30 PMPhilip W
07/19/2024, 2:28 PMThor Rognan
07/19/2024, 10:39 PMwrapper validation
docs state that the action should precede any step using gradle/gradle-build-action
or gradle/actions/setup-gradle
, though it doesn't also state that the dependency-submission
action falls into this category.
Is this just an oversight in the docs?SAKTHIVISHNU
07/20/2024, 11:03 AMSAKTHIVISHNU
07/20/2024, 11:03 AMSahil Midha
07/21/2024, 12:35 PMZakaria El Orche
07/21/2024, 2:56 PMplugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'maven-publish'
id 'org.ajoberstar.grgit' version '5.2.2'
id 'fabric-loom' version "$fabric_loom_version" apply false
id "com.github.node-gradle.node" version "7.0.2"
}
group = 'net.vitacraft'
archivesBaseName = 'DiscordBotManager'
version = "1.0"
description = "$ext.plugin_description"
java {
toolchain.languageVersion = JavaLanguageVersion.of(21)
}
repositories {
mavenCentral()
maven { url '<https://maven.fabricmc.net/>' }
maven { url '<https://libraries.minecraft.net/>' }
maven { url '<https://api.modrinth.com/maven>' }
maven { url '<https://repo.papermc.io/repository/maven-public/>' }
maven { url '<https://hub.spigotmc.org/nexus/content/repositories/snapshots/>' }
maven { url '<https://repo.spongepowered.org/repository/maven-public/>' }
maven { url '<https://jitpack.io>' }
}
dependencies {
implementation project(':common')
implementation project(':bukkit')
implementation project(':fabric')
implementation project(':velocity')
implementation project(':waterfall')
implementation project(':paper')
implementation project(':webui')
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.2'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.10.2'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.10.2'
compileOnly 'com.mojang:brigadier:1.0.18'
compileOnly "io.papermc.paper:paper-api:1.21-R0.1-SNAPSHOT"
implementation("com.github.Carleslc.Simple-YAML:Simple-Yaml:1.8.4")
shadow 'com.github.Carleslc.Simple-YAML:Simple-Yaml:1.8.4'
implementation("net.dv8tion:JDA:5.0.1")
implementation files("${project.projectDir}/libs/JDA-5.0.1-withDependencies-min.jar")
implementation files("${project.projectDir}/libs/jmjda-1.2.1.jar")
}
processResources {
filesMatching(['fabric.mod.json', 'plugin.yml', '<http://mcmod.info|mcmod.info>', 'META-INF/mods.toml', 'pack.mcmeta']) {
expand project.properties
}
}
shadowJar {
archiveClassifier.set('')
dependencies {
exclude("META-INF/versions/**")
include(dependency('com.github.Carleslc.Simple-YAML:Simple-Yaml:1.8.4'))
include(dependency("${project.group}:common"))
include(project(':common'))
include(project(':bukkit'))
include(project(':fabric'))
include(project(':velocity'))
include(project(':waterfall'))
include(project(':paper'))
include(':webui')
}
}
jar {
finalizedBy shadowJar
}
subprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'com.github.johnrengelman.shadow'
java {
toolchain.languageVersion = JavaLanguageVersion.of(21)
}
repositories {
mavenCentral()
maven { url "<https://libraries.minecraft.net>" }
maven { url '<https://jitpack.io>' }
}
dependencies {
if (project.name != 'common') {
implementation project(':common')
}
compileOnly 'org.jetbrains:annotations:24.1.0'
compileOnly 'org.projectlombok:lombok:1.18.32'
annotationProcessor 'org.projectlombok:lombok:1.18.32'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.2'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.10.2'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.10.2'
compileOnly 'com.mojang:brigadier:1.0.18'
shadow implementation("com.github.Carleslc.Simple-YAML:Simple-Yaml:1.8.4")
implementation("net.dv8tion:JDA:5.0.1")
implementation files("${project.projectDir}/libs/JDA-5.0.1-withDependencies-min.jar")
implementation files("${project.projectDir}/libs/jmjda-1.2.1.jar")
}
processResources {
filesMatching(['fabric.mod.json', 'plugin.yml', '<http://mcmod.info|mcmod.info>', 'META-INF/mods.toml', 'pack.mcmeta']) {
expand project.properties
}
}
shadowJar {
archiveClassifier.set('')
}
}
logger.lifecycle("Building ${project.name} ${version} by VitacraftOrg")
and my webui is built with this webui/build.gradle file
plugins {
id 'com.github.node-gradle.node' version '7.0.2'
}
node {
version = '14.17.0'
npmVersion = '6.14.13'
download = true
}
task npmBuild(type: NpmTask) {
dependsOn npmInstall
mustRunAfter jar
args = ['run', 'build']
inputs.files fileTree('src')
inputs.files fileTree('public')
inputs.file 'package.json'
inputs.file 'package-lock.json'
outputs.dir 'build'
}
clean {
delete 'build'
}
assemble.dependsOn npmBuild
issue is, after running ./gradlew clean build
everything is built correctly but inspecting the output jar i cannot seem to find the "build" folder with the react assets, what am i doing wrong ?Eug
07/22/2024, 4:02 PMEli Graber
07/22/2024, 11:43 PMNikolay
07/23/2024, 7:08 PMgradle.properties
. Looking at the documentation I thought I could do it by saying --no-gradle-daemon
and using the JAVA_OPTS
environment variable but the build still uses the settings defined in gradle.properties
. Is there a way to run gradle with different JVM settings depending on which gradle task we want to run…Kelvin Chung
07/23/2024, 7:59 PMinterface MyDomainObject {
val isSomething: Property<Boolean>
}
and I am getting an error like
> Could not create an instance of type MyDomainObject
> Could not generate a decorated class for type MyDomainObject
> Cannot have abstract method MyDomainObject.isSomething()
This all has something to do with the fact that we have a property named isSomething
, right?Sergej Koščejev
07/24/2024, 9:27 AM./gradlew --refresh-dependencies
?Miles Peele
07/24/2024, 12:21 PMmaxParallelForks
(from Gradle's docs), setting forkEvery
to both 0
and 1
, using different JDK versions (11
and 17
), but no smoking gun yet.ASIF KAMRAN MALICK
07/24/2024, 4:20 PMtask execCopyExec{
doLast {
exec{
...
}
//some more exec methods
println csvDir // prints valid Windows absolute path
println new File(repoDir, targetDir) // prints valid Windows absolute path
copy {
from csvDir
into new File(repoDir, targetDir)
}
exec{
...
}
//some more exec methods
}
}
Roded Bahat
07/25/2024, 3:39 AMSergej Koščejev
07/26/2024, 3:16 PMproject(":foo") { ... }
. Is this something that is officially supported for use in real builds?Sergej Koščejev
07/26/2024, 3:48 PM