SmartCursor icon indicating copy to clipboard operation
SmartCursor copied to clipboard

Add ModSide to manifest.

Open Claycorp opened this issue 10 years ago • 3 comments

Adding

manifest {
        attributes 'ModSide': 'CLIENT'
    }

to jar in your build.gradle file will mark the mod as client side and will prevent it from loading on server and thus crashing them.

Claycorp avatar May 30 '15 20:05 Claycorp

Like this?

buildscript {
...
}
...
apply plugin: 'forge'
...
version = "1.5.0"
group= "com.asaskevich.smartcursor" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "SmartCursor"
...
minecraft {
...
}

manifest {
    attributes 'ModSide': 'CLIENT'
}

dependencies {
...
}

processResources {
...
} 

because in the last release there are no anything inside manifest file, only its version

asaskevich avatar Jul 11 '15 12:07 asaskevich

No, it needs to go inside of the jar block, like this:

https://github.com/dries007/TapeMouse/blob/master/build.gradle#L82

Also, you might want to include the build.gradle in the project repo. A build server would then be able to build the project every time you push a commit. You can still hide details like passwords in a separate gradle file in your user directory. (More info on the gradle website)

dries007 avatar Jul 12 '15 22:07 dries007

@Claycorp @dries007 okay, will look on it

asaskevich avatar Sep 11 '18 10:09 asaskevich