Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The OS property cannot be set #384

Open
deian-bit opened this issue Oct 1, 2020 · 1 comment
Open

The OS property cannot be set #384

deian-bit opened this issue Oct 1, 2020 · 1 comment

Comments

@deian-bit
Copy link

deian-bit commented Oct 1, 2020

Initializing the plugin ospackage with the following code is not working :

import com.netflix.gradle.plugins.rpm.Rpm

plugins {
id("nebula.ospackage") version "8.4.1"
}

ospackage {
version = "1.0.0"
release = "1"
os = LINUX
}

The following error during "gradle build" is displayed:

Script compilation error:
Line 12: os = LINUX
^ Unresolved reference: LINUX

Setting properties directly in the task has the same result:

tasks.withType {

version = "1.0.0"
release = "1"
packageName = "rest-server"
summary = "rpm for war deployment"
preInstall("scripts/rpm/preInstall.sh")
archStr = "X86_64"
//type = BINARY
os = LINUX

}

By the way there is the same problem with the property "type".

gradle -v

Gradle 6.7-rc-1

@deian-bit deian-bit changed the title The OS cannot be set The OS property cannot be set Oct 2, 2020
@Hendrik-H
Copy link

did you try os = org.redline_rpm.header.Os.LINUX ? that works for me just fine in an Rpm task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants