You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building packages in a github action (and thus Linux).
My build looks like this:
build.gradle:
plugins {
id 'java'
id 'org.springframework.boot' version '3.2.1'
id 'io.spring.dependency-management' version '1.1.4'
id 'com.netflix.nebula.ospackage-application-spring-boot' version '11.6.0'
}
group ='com.mycompany'
repositories {
mavenCentral()
}
java {
sourceCompatibility ='21'
}
application {
mainClass ='com.mycompany.MyApp'
}
dependencies {
// ...
}
and when I generate an RPM with buildRpm task, I get:
# rpm -Uvh /tmp/myapp-0.1.5.noarch.rpm
Preparing... ################################# [100%]
package myapp-0:0.1.5-.noarch is intended for a different operating system
# rpm -q --qf "%{OS}\n" -p /tmp/myapp-0.1.5.noarch.rpm
unknown
I understand the os should be set to linux instead... but I see no way to do it cleanly with the ospackage-application-spring-boot plugin. Any hint?
(adding settings.gradle for completion, but I don't think it's related):
The text was updated successfully, but these errors were encountered:
flozano
changed the title
Generated RPMs do not have OS set to Linux
Generated RPMs do not have OS set to Linux (ospackage-application-spring-boot)
Jan 24, 2024
I'm building packages in a github action (and thus Linux).
My build looks like this:
build.gradle:
and when I generate an RPM with buildRpm task, I get:
I understand the os should be set to linux instead... but I see no way to do it cleanly with the ospackage-application-spring-boot plugin. Any hint?
(adding settings.gradle for completion, but I don't think it's related):
The text was updated successfully, but these errors were encountered: