Re: RFR: 8249777: build.gradle: project.version should not contain time stamps [v2]

2020-08-10 Thread Johan Vos
On Thu, 23 Jul 2020 13:45:33 GMT, Kevin Rushforth  wrote:

>> The addMavenPublication method sets the `project.version` to 
>> `$MAVEN_VERSION`, where project is base, graphics,
>> controls, etc. When doing an ordinary "developer" build, this property 
>> contains the time stamp . This is causing
>> problems with the NetBeans gradle plugin not being able to determine the 
>> dependencies between the projects (modules).
>> We haven't noticed this bug before now, because we suppress the creation of 
>> the individual project jar files, but if we
>> were creating them, we would have the problem that each time we ran gradle, 
>> it would generate a new
>> `project-$version.jar` file with a different time stamp each time the build 
>> was run.  The setting of
>> `project.version=$MAVEN_VERSION` is only used by the maven "publish" tasks, 
>> which isn't done for developer builds nor
>> for most productions builds.  The proposed solution is to add a new boolean 
>> `MAVEN_PUBLISH` flag, which will default to
>> `false`. This flag will qualify the setting of the `MAVEN_VERSION` property 
>> and the configuration of the maven
>> publishing tasks. After this change, it will be necessary to run gradle with 
>> `-PMAVEN_PUBLISH=true` in order to run the
>> maven publishing tasks.
>
> Kevin Rushforth has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   Remove unised mavenPublish property from graphics project

Marked as reviewed by jvos (Reviewer).

-

PR: https://git.openjdk.java.net/jfx/pull/270


Re: RFR: 8249777: build.gradle: project.version should not contain time stamps [v2]

2020-07-23 Thread Joeri Sykora
On Thu, 23 Jul 2020 13:45:33 GMT, Kevin Rushforth  wrote:

>> The addMavenPublication method sets the `project.version` to 
>> `$MAVEN_VERSION`, where project is base, graphics,
>> controls, etc. When doing an ordinary "developer" build, this property 
>> contains the time stamp . This is causing
>> problems with the NetBeans gradle plugin not being able to determine the 
>> dependencies between the projects (modules).
>> We haven't noticed this bug before now, because we suppress the creation of 
>> the individual project jar files, but if we
>> were creating them, we would have the problem that each time we ran gradle, 
>> it would generate a new
>> `project-$version.jar` file with a different time stamp each time the build 
>> was run.  The setting of
>> `project.version=$MAVEN_VERSION` is only used by the maven "publish" tasks, 
>> which isn't done for developer builds nor
>> for most productions builds.  The proposed solution is to add a new boolean 
>> `MAVEN_PUBLISH` flag, which will default to
>> `false`. This flag will qualify the setting of the `MAVEN_VERSION` property 
>> and the configuration of the maven
>> publishing tasks. After this change, it will be necessary to run gradle with 
>> `-PMAVEN_PUBLISH=true` in order to run the
>> maven publishing tasks.
>
> Kevin Rushforth has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   Remove unised mavenPublish property from graphics project

Marked as reviewed by sykora (Author).

-

PR: https://git.openjdk.java.net/jfx/pull/270


Re: RFR: 8249777: build.gradle: project.version should not contain time stamps [v2]

2020-07-23 Thread Kevin Rushforth
> The addMavenPublication method sets the `project.version` to 
> `$MAVEN_VERSION`, where project is base, graphics,
> controls, etc. When doing an ordinary "developer" build, this property 
> contains the time stamp . This is causing
> problems with the NetBeans gradle plugin not being able to determine the 
> dependencies between the projects (modules).
> We haven't noticed this bug before now, because we suppress the creation of 
> the individual project jar files, but if we
> were creating them, we would have the problem that each time we ran gradle, 
> it would generate a new
> `project-$version.jar` file with a different time stamp each time the build 
> was run.  The setting of
> `project.version=$MAVEN_VERSION` is only used by the maven "publish" tasks, 
> which isn't done for developer builds nor
> for most productions builds.  The proposed solution is to add a new boolean 
> `MAVEN_PUBLISH` flag, which will default to
> `false`. This flag will qualify the setting of the `MAVEN_VERSION` property 
> and the configuration of the maven
> publishing tasks. After this change, it will be necessary to run gradle with 
> `-PMAVEN_PUBLISH=true` in order to run the
> maven publishing tasks.

Kevin Rushforth has updated the pull request incrementally with one additional 
commit since the last revision:

  Remove unised mavenPublish property from graphics project

-

Changes:
  - all: https://git.openjdk.java.net/jfx/pull/270/files
  - new: https://git.openjdk.java.net/jfx/pull/270/files/592ad650..1c077ec5

Webrevs:
 - full: https://webrevs.openjdk.java.net/jfx/270/webrev.01
 - incr: https://webrevs.openjdk.java.net/jfx/270/webrev.00-01

  Stats: 1 line in 1 file changed: 0 ins; 1 del; 0 mod
  Patch: https://git.openjdk.java.net/jfx/pull/270.diff
  Fetch: git fetch https://git.openjdk.java.net/jfx pull/270/head:pull/270

PR: https://git.openjdk.java.net/jfx/pull/270


Re: RFR: 8249777: build.gradle: project.version should not contain time stamps

2020-07-23 Thread Joeri Sykora
On Wed, 22 Jul 2020 17:24:24 GMT, Kevin Rushforth  wrote:

>> The addMavenPublication method sets the `project.version` to 
>> `$MAVEN_VERSION`, where project is base, graphics,
>> controls, etc. When doing an ordinary "developer" build, this property 
>> contains the time stamp . This is causing
>> problems with the NetBeans gradle plugin not being able to determine the 
>> dependencies between the projects (modules).
>> We haven't noticed this bug before now, because we suppress the creation of 
>> the individual project jar files, but if we
>> were creating them, we would have the problem that each time we ran gradle, 
>> it would generate a new
>> `project-$version.jar` file with a different time stamp each time the build 
>> was run.  The setting of
>> `project.version=$MAVEN_VERSION` is only used by the maven "publish" tasks, 
>> which isn't done for developer builds nor
>> for most productions builds.  The proposed solution is to add a new boolean 
>> `MAVEN_PUBLISH` flag, which will default to
>> `false`. This flag will qualify the setting of the `MAVEN_VERSION` property 
>> and the configuration of the maven
>> publishing tasks. After this change, it will be necessary to run gradle with 
>> `-PMAVEN_PUBLISH=true` in order to run the
>> maven publishing tasks.
>
> build.gradle line 2063:
> 
>> 2062: project.ext.moduleName = "javafx.graphics"
>> 2063: project.ext.mavenPublish = IS_MAVEN_PUBLISH
>> 2064:
> 
> Is this property needed? None of the other projects define it, and I don't 
> see any usage of it.

No, it indeed doesn't seem to be used anywhere. I would remove it.

-

PR: https://git.openjdk.java.net/jfx/pull/270


RFR: 8249777: build.gradle: project.version should not contain time stamps

2020-07-22 Thread Kevin Rushforth
The addMavenPublication method sets the `project.version` to `$MAVEN_VERSION`, 
where project is base, graphics,
controls, etc. When doing an ordinary "developer" build, this property contains 
the time stamp . This is causing
problems with the NetBeans gradle plugin not being able to determine the 
dependencies between the projects (modules).

We haven't noticed this bug before now, because we suppress the creation of the 
individual project jar files, but if we
were creating them, we would have the problem that each time we ran gradle, it 
would generate a new
`project-$version.jar` file with a different time stamp each time the build was 
run.

The setting of `project.version=$MAVEN_VERSION` is only used by the maven 
"publish" tasks, which isn't done for
developer builds nor for most productions builds.

The proposed solution is to add a new boolean `MAVEN_PUBLISH` flag, which will 
default to `false`. This flag will
qualify the setting of the `MAVEN_VERSION` property and the configuration of 
the maven publishing tasks. After this
change, it will be necessary to run gradle with `-PMAVEN_PUBLISH=true` in order 
to run the maven publishing tasks.

-

Commit messages:
 - 8249777: build.gradle: project.version should not contain time stamps

Changes: https://git.openjdk.java.net/jfx/pull/270/files
 Webrev: https://webrevs.openjdk.java.net/jfx/270/webrev.00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8249777
  Stats: 11 lines in 1 file changed: 9 ins; 0 del; 2 mod
  Patch: https://git.openjdk.java.net/jfx/pull/270.diff
  Fetch: git fetch https://git.openjdk.java.net/jfx pull/270/head:pull/270

PR: https://git.openjdk.java.net/jfx/pull/270


Re: RFR: 8249777: build.gradle: project.version should not contain time stamps

2020-07-22 Thread Kevin Rushforth
On Wed, 22 Jul 2020 17:22:25 GMT, Kevin Rushforth  wrote:

> The addMavenPublication method sets the `project.version` to 
> `$MAVEN_VERSION`, where project is base, graphics,
> controls, etc. When doing an ordinary "developer" build, this property 
> contains the time stamp . This is causing
> problems with the NetBeans gradle plugin not being able to determine the 
> dependencies between the projects (modules).
> We haven't noticed this bug before now, because we suppress the creation of 
> the individual project jar files, but if we
> were creating them, we would have the problem that each time we ran gradle, 
> it would generate a new
> `project-$version.jar` file with a different time stamp each time the build 
> was run.  The setting of
> `project.version=$MAVEN_VERSION` is only used by the maven "publish" tasks, 
> which isn't done for developer builds nor
> for most productions builds.  The proposed solution is to add a new boolean 
> `MAVEN_PUBLISH` flag, which will default to
> `false`. This flag will qualify the setting of the `MAVEN_VERSION` property 
> and the configuration of the maven
> publishing tasks. After this change, it will be necessary to run gradle with 
> `-PMAVEN_PUBLISH=true` in order to run the
> maven publishing tasks.

@tiainen can you also review this?

build.gradle line 2063:

> 2062: project.ext.moduleName = "javafx.graphics"
> 2063: project.ext.mavenPublish = IS_MAVEN_PUBLISH
> 2064:

Is this property needed? None of the other projects define it, and I don't see 
any usage of it.

-

PR: https://git.openjdk.java.net/jfx/pull/270