Using a Maven dependency that uses SWT

I have a project that has a dependency to a Maven project that uses SWT. The POM file contains the following code:

<profiles>
    <profile>
        <id>windows_amd64</id>
        <activation>
            <os>
                <family>Windows</family>
                <arch>amd64</arch>
            </os>
        </activation>
        <dependencies>
            <dependency>
                <groupId>org.eclipse.swt</groupId>
                <artifactId>swt-win32-win32-x86_64</artifactId>
                <version>4.2.1</version>
            </dependency>
        </dependencies>
    </profile>
    <profile>
        <id>linux_x86_gtk2</id>
        <activation>
            <os>
                <family>linux</family>
                <arch>x86</arch>
            </os>
        </activation>
        <dependencies>
            <dependency>
                <groupId>org.eclipse.swt</groupId>
                <artifactId>swt-gtk-linux-x86</artifactId>
                <version>4.2.1</version>
            </dependency>
        </dependencies>
    </profile>
    <profile>
        <id>linux_amd64_gtk2</id>
        <activation>
            <os>
                <family>linux</family>
                <arch>amd64</arch>
            </os>
        </activation>
        <dependencies>
            <dependency>
                <groupId>org.eclipse.swt</groupId>
                <artifactId>swt-gtk-linux-x86_64</artifactId>
                <version>4.2.1</version>
            </dependency>
        </dependencies>
    </profile>
</profiles>

Gradle resolved the pom.xml file dependencies except the activation of the profile that depends on the operating system.

Is there any way to solve this without define a new dependency on the build.gradle file?

Thanks!