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

Add parameter to lifecycleParticipant #445

Merged
merged 1 commit into from Sep 13, 2014

Conversation

Shusshu
Copy link
Contributor

@Shusshu Shusshu commented Sep 4, 2014

Following on #422

It adds the ability to use parameters in the pom to customize the way the lifecycleParticipant deals with dependencies in the libs folder of the apklib/aar

This is now complete.

@Shusshu
Copy link
Contributor Author

Shusshu commented Sep 4, 2014

Oh and I only quickly tested it to see if the param were taken into account (they were) but didn't do an actual test by building till the end a project & running it. I couldn't help myself to implement it directly as tomorrow I won't be able to.

So if @william-ferguson-au wanna test this it would be perfect.
Otherwise I will test it in the next few days

@@ -151,6 +176,28 @@ else if ( type.equals( AndroidExtension.APKLIB ) && includeLibsJarsForApklib )
log.debug( "ClasspathModifierLifecycleParticipant#afterProjectsRead - finish" );
}

protected String getPluginId()
{
return "android-maven-plugin";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be a generic constant. Maybe even filtered into a properties file from the pom? Imho at least a static constant in some plugin wide class.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I did it fast so I could sleep 😁
I'll change that soon.
On 4 Sep 2014 23:47, "William Ferguson" notifications@github.com wrote:

In
src/main/java/com/jayway/maven/plugins/android/phase_prebuild/ClasspathModifierLifecycleParticipant.java:

@@ -151,6 +176,28 @@ else if ( type.equals( AndroidExtension.APKLIB ) && includeLibsJarsForApklib )
log.debug( "ClasspathModifierLifecycleParticipant#afterProjectsRead - finish" );
}

  • protected String getPluginId()
  • {
  •    return "android-maven-plugin";
    

Agree


Reply to this email directly or view it on GitHub
https://github.com/jayway/maven-android-plugin/pull/445/files#r17144689.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where do you want to put that constant?
I don't think you should put it in the pom or in a property file...

@Shusshu
Copy link
Contributor Author

Shusshu commented Sep 8, 2014

Better?

Btw I couldn't find any other place where we would need to use this new class but maybe I searched for the wrong things.

<configuration>
<signature>
<groupId>org.codehaus.mojo.signature</groupId>
<artifactId>java16</artifactId>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pulled master first and then rebased & squashed.
Now I know if I want to rebase & squash I should not pull master. sorry for that

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is from the pull request that I submitted this morning, that Manfred
has already merged.

On Tue, Sep 9, 2014 at 6:08 PM, Benoit Billington notifications@github.com
wrote:

In pom.xml:

@@ -694,6 +694,27 @@
26a4c760b261ca


+

  •        <plugin>
    
  •            <groupId>org.codehaus.mojo</groupId>
    
  •            <artifactId>animal-sniffer-maven-plugin</artifactId>
    
  •            <configuration>
    
  •                <signature>
    
  •                    <groupId>org.codehaus.mojo.signature</groupId>
    
  •                    <artifactId>java16</artifactId>
    

I pulled master first and then rebased & squashed dunno why it added
this.....


Reply to this email directly or view it on GitHub
https://github.com/jayway/maven-android-plugin/pull/445/files#r17287091.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I know I should not pull from master when I rebase & squash

@Shusshu
Copy link
Contributor Author

Shusshu commented Sep 10, 2014

ready to merge

@mosabua
Copy link
Member

mosabua commented Sep 12, 2014

I had something a bit different in mind. I will try to pull this in and refactor .. hopefully tonight.

mosabua added a commit that referenced this pull request Sep 13, 2014
Add parameter to lifecycleParticipant
@mosabua mosabua merged commit b438805 into simpligility:master Sep 13, 2014
@Shusshu Shusshu deleted the param-participant branch September 13, 2014 09:20
@mosabua
Copy link
Member

mosabua commented Sep 16, 2014

Done and in master now.

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

Successfully merging this pull request may close these issues.

None yet

3 participants