Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Ok, I'm using an external plugin for forge gradle called clojuresque in order to compile clojure code. This actually works rather well but... every time I run this thing the console always spams this:

 

 

 

'warnOnReflection' is deprecated and will go away in a future version. Please use 'clojure.warnOnReflection' instead.

'aotCompile' is deprecated and will go away in a future version. Please use 'clojure.aotCompile' instead.

'warnOnReflection' is deprecated and will go away in a future version. Please use 'clojure.warnOnReflection' instead.

'aotCompile' is deprecated and will go away in a future version. Please use 'clojure.aotCompile' instead.

'warnOnReflection' is deprecated and will go away in a future version. Please use 'clojure.warnOnReflection' instead.

'aotCompile' is deprecated and will go away in a future version. Please use 'clojure.aotCompile' instead.

'warnOnReflection' is deprecated and will go away in a future version. Please use 'clojure.warnOnReflection' instead.

'aotCompile' is deprecated and will go away in a future version. Please use 'clojure.aotCompile' instead.

 

 

And my build.gradle file looks like this:

 

 

 

buildscript {

    repositories {

        mavenCentral()

        maven {

            name = "forge"

            url = "http://files.minecraftforge.net/maven"

        }

        maven { url "http://clojars.org/repo" }

        maven {

            name = "sonatype"

            url = "https://oss.sonatype.org/content/repositories/snapshots/"

        }

 

    }

    dependencies {

classpath 'clojuresque:clojuresque:1.7.0'

classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'

    }

}

 

repositories {maven { url "http://clojars.org/repo" }}

 

apply plugin: 'clojure'

 

clojure.warnOnReflection = true

clojure.aotCompile = true

 

apply plugin: 'forge'

 

version = ""

group= "forge_clj.core" // http://maven.apache.org/guides/mini/guide-naming-conventions.html

archivesBaseName = "forge_clj"

 

minecraft {

    version = "1.7.10-10.13.4.1448-1.7.10"

    runDir = "eclipse"

}

 

configurations {

shade

compile.extendsFrom shade

}

 

dependencies {

    // you may put jars on which you depend on in ./libs

    // or you may define them like so..

    //compile "some.group:artifact:version:classifier"

    //compile "some.group:artifact:version"

     

    // real examples

    //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev'  // adds buildcraft to the dev env

    //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env

 

    // for more info...

    // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html

    // http://www.gradle.org/docs/current/userguide/dependency_management.html

 

shade 'org.clojure:clojure:1.7.0'

}

 

jar {

    configurations.shade.each { dep ->

        from(project.zipTree(dep)){

            exclude 'META-INF', 'META-INF/**'

        }

    }

}

 

task deobfJar(type: Jar) {

    from sourceSets.main.output

    classifier = 'dev'

}

 

tasks.build.dependsOn('deobfJar')

 

processResources

{

    // this will ensure that this task is redone when the versions change.

    inputs.property "version", project.version

    inputs.property "mcversion", project.minecraft.version

 

    // replace stuff in mcmod.info, nothing else

    from(sourceSets.main.resources.srcDirs) {

        include 'mcmod.info'

               

        // replace version and mcversion

        expand 'version':project.version, 'mcversion':project.minecraft.version

    }

       

    // copy everything else, thats not the mcmod.info

    from(sourceSets.main.resources.srcDirs) {

        exclude 'mcmod.info'

    }

}

 

 

 

Even if I remove the clojure.warnOnReflection = true line, and clojure.aotCompile = true line, it still spams this message, and it's getting annoying, and might be confusing to other modders using the library made with this.

 

So what I'm asking is mainly if there's a way to just suppress the deprecation warnings on this thing. If I had to guess, the issue is probably in the plugin itself (it's been abandoned for ~2 years, but still works). I can do without a solution, but it'd be nice if there's a way to prevent it.

Currently working on a mod to provide support for the Clojure programming language in Minecraft, check it out here.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.