@@ -62,18 +62,18 @@ task publish {
62
62
}
63
63
64
64
ext {
65
- if ( project. hasProperty( ' OSSRH_USER ' ) ) {
66
- if ( ! project. hasProperty( ' OSSRH_PASSWORD ' ) ) {
67
- throw new GradleException ( " Should specify both `OSSRH_USER ` and `OSSRH_PASSWORD ` as project properties" );
65
+ if ( project. hasProperty( ' hibernatePublishUsername ' ) ) {
66
+ if ( ! project. hasProperty( ' hibernatePublishPassword ' ) ) {
67
+ throw new GradleException ( " Should specify both `hibernatePublishUsername ` and `hibernatePublishPassword ` as project properties" );
68
68
}
69
69
}
70
70
}
71
71
72
72
nexusPublishing {
73
73
repositories {
74
74
sonatype {
75
- username = project. hasProperty( ' OSSRH_USER ' ) ? project. property( ' OSSRH_USER ' ) : null
76
- password = project. hasProperty( ' OSSRH_PASSWORD ' ) ? project. property( ' OSSRH_PASSWORD ' ) : null
75
+ username = project. hasProperty( ' hibernatePublishUsername ' ) ? project. property( ' hibernatePublishUsername ' ) : null
76
+ password = project. hasProperty( ' hibernatePublishPassword ' ) ? project. property( ' hibernatePublishPassword ' ) : null
77
77
}
78
78
}
79
79
}
@@ -94,11 +94,11 @@ gradle.taskGraph.addTaskExecutionGraphListener(
94
94
if ( graph. hasTask( taskToLookFor ) ) {
95
95
// trying to publish - make sure the needed credentials are available
96
96
97
- if ( project. property( ' OSSRH_USER ' ) == null ) {
98
- throw new RuntimeException ( " `-POSSRH_USER =...` not found" )
97
+ if ( project. property( ' hibernatePublishUsername ' ) == null ) {
98
+ throw new RuntimeException ( " `-PhibernatePublishUsername =...` not found" )
99
99
}
100
- if ( project. property( ' OSSRH_PASSWORD ' ) == null ) {
101
- throw new RuntimeException ( " `-POSSRH_PASSWORD =...` not found" )
100
+ if ( project. property( ' hibernatePublishPassword ' ) == null ) {
101
+ throw new RuntimeException ( " `-PhibernatePublishPassword =...` not found" )
102
102
}
103
103
104
104
break ;
0 commit comments